Alberto Piganti
/
blip_servo
miniblip servo example
Revision 0:e3d2be5607ba, committed 2015-11-26
- Comitter:
- pighixxx
- Date:
- Thu Nov 26 09:29:07 2015 +0000
- Commit message:
- miniblip servo example
Changed in this revision
diff -r 000000000000 -r e3d2be5607ba Servo.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Thu Nov 26 09:29:07 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/simon/code/Servo/#36b69a7ced07
diff -r 000000000000 -r e3d2be5607ba main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 26 09:29:07 2015 +0000 @@ -0,0 +1,13 @@ +// miniblip servo demo + +#include "mbed.h" +#include "Servo.h" + +Servo myservo(P0_15); + +int main() { + for(float p=0; p<1.0; p += 0.1) { + myservo = p; + wait(0.2); + } +} \ No newline at end of file
diff -r 000000000000 -r e3d2be5607ba mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 26 09:29:07 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1 \ No newline at end of file