Alejandro Velasco / Mbed 2 deprecated Servo_Move

Dependencies:   Servo mbed

Files at this revision

API Documentation at this revision

Comitter:
alevelara
Date:
Tue Dec 30 18:17:12 2014 +0000
Commit message:
Servo move

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Servo.lib	Tue Dec 30 18:17:12 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/Servo/#36b69a7ced07
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 30 18:17:12 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "Servo.h"
+
+Servo       myServo(PB_9);
+DigitalIn   button(USER_BUTTON);
+    
+
+int main(){
+    myServo.calibrate(0.0005,45.0);
+    
+    while(1){
+    //While we press the user button, the servo turn right
+        if(!button){
+           myServo.write(0.5);
+        }
+    }
+}
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 30 18:17:12 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file