Code ServoMotor

Dependencies:   Servo mbed

Fork of Servo_HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
meikefrok
Date:
Fri Oct 14 13:19:46 2016 +0000
Parent:
1:40d2fd0b99e6
Commit message:
Doesn't work;

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
--- a/Servo.lib	Tue Nov 23 16:10:35 2010 +0000
+++ b/Servo.lib	Fri Oct 14 13:19:46 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/simon/code/Servo/#36b69a7ced07
+http://developer.mbed.org/users/simon/code/Servo/#36b69a7ced07
--- a/main.cpp	Tue Nov 23 16:10:35 2010 +0000
+++ b/main.cpp	Fri Oct 14 13:19:46 2016 +0000
@@ -1,13 +1,13 @@
-// Hello World to sweep a servo through its full range
 
 #include "mbed.h"
 #include "Servo.h"
 
-Servo myservo(p21);
+Servo myservo(D8);
 
 int main() {    
-    for(float p=0; p<1.0; p += 0.1) {
-        myservo = p;
-        wait(0.2);
-    }
+  //      for(float p=0; p<1.0; p += 0.1) {
+  //          myservo = p;
+  //          wait(0.2);
+    myservo = 0.5; 
 }
+
--- a/mbed.bld	Tue Nov 23 16:10:35 2010 +0000
+++ b/mbed.bld	Fri Oct 14 13:19:46 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
+http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3
\ No newline at end of file