Exp5_RCservo

Dependencies:   mbed Servo

Files at this revision

API Documentation at this revision

Comitter:
ddamato31
Date:
Tue Aug 02 22:11:51 2011 +0000
Commit message:

Changed in this revision

Servo.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
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