SERVO P21

Dependencies:   Servo mbed

Fork of Servo_HelloWorld by Simon Ford

Revision:
2:6a732b645886
Parent:
1:40d2fd0b99e6
--- 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);
-    }
+        }
+        }
 }