SERVO P21

Dependencies:   Servo mbed

Fork of Servo_HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
rajivwagle
Date:
Thu Mar 08 12:24:36 2018 +0000
Parent:
1:40d2fd0b99e6
Commit message:
SERVO MOTOR

Changed in this revision

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/main.cpp	Tue Nov 23 16:10:35 2010 +0000
+++ b/main.cpp	Thu Mar 08 12:24:36 2018 +0000
@@ -5,9 +5,14 @@
 
 Servo myservo(p21);
 
-int main() {    
-    for(float p=0; p<1.0; p += 0.1) {
+int main() 
+{   
+        while(1)
+        { 
+    for(float p=0; p<1.0; p += 0.1)
+        {
         myservo = p;
         wait(0.2);
-    }
+        }
+        }
 }
--- a/mbed.bld	Tue Nov 23 16:10:35 2010 +0000
+++ b/mbed.bld	Thu Mar 08 12:24:36 2018 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
+https://os.mbed.com/users/mbed_official/code/mbed/builds/7130f322cb7e
\ No newline at end of file