D. Damato
/
Exp5_RCservo
Exp5_RCservo
Revision 0:cb060c40c1ee, committed 2011-08-02
- Comitter:
- ddamato31
- Date:
- Tue Aug 02 22:11:51 2011 +0000
- Commit message:
Changed in this revision
diff -r 000000000000 -r cb060c40c1ee Servo.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Tue Aug 02 22:11:51 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/Servo/#36b69a7ced07
diff -r 000000000000 -r cb060c40c1ee main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Aug 02 22:11:51 2011 +0000 @@ -0,0 +1,14 @@ +// Calibrate RC Servo by change offset value (-250 < offset < 250) + #include "mbed.h" + +PwmOut Servo(p22); + + + int main() { + int offset = -100; + Servo.period_us(20000); + Servo.pulsewidth_us(1500 + offset); + while(1) { + Servo.pulsewidth_us(1500 + offset); + } + } \ No newline at end of file
diff -r 000000000000 -r cb060c40c1ee mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Aug 02 22:11:51 2011 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912