test

Dependencies:   Servo

Files at this revision

API Documentation at this revision

Comitter:
gorazdko
Date:
Sun Jun 02 09:02:34 2019 +0000
Parent:
44:50aa0a0d1222
Child:
46:f7d5c27c09f5
Commit message:
OK

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sun Jun 02 08:56:57 2019 +0000
+++ b/main.cpp	Sun Jun 02 09:02:34 2019 +0000
@@ -69,9 +69,14 @@
        wait_ms(TIME);
     }
     
-    
+    while (!myButton)
+    {
+        
        myServo.pulsewidth_us(MID); //NB in microseconds
        wait_ms(TIME);
+    }
+    
+
     
     
   }