紹輔 伍
/
DISCO-F469NI_Servo2
TESTING
Revision 0:13a9ec3f61a6, committed 2017-08-11
- Comitter:
- kkkkkkk
- Date:
- Fri Aug 11 09:08:24 2017 +0000
- Commit message:
- TESTING;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Fri Aug 11 09:08:24 2017 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/simon/code/Servo/#36b69a7ced07
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Aug 11 09:08:24 2017 +0000 @@ -0,0 +1,13 @@ +// Hello World to sweep a servo through its full range + +#include "mbed.h" +#include "Servo.h" + +Servo myservo(A0); + +int main() { + for(float p=0; p<1.0; p += 0.1) { + myservo = p; + wait(0.2); + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Aug 11 09:08:24 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/fd96258d940d \ No newline at end of file