test

Dependencies:   Servo

Revision:
49:6ebde58afad3
Parent:
48:4ac030bc2910
--- a/main.cpp	Sun Jun 02 09:52:57 2019 +0000
+++ b/main.cpp	Sun Jun 02 12:16:38 2019 +0000
@@ -41,14 +41,16 @@
  
 int main() {
   
-  wait(1); // if (myButton)
+  wait(1); 
+  
+  myServo.pulsewidth_us(MAX); //NB in microseconds
+  wait(3);
 
- 
-  
   
   while (1)
   {
 
+
     
     if (myButton)
     {
@@ -66,7 +68,7 @@
         wait_ms(25);
       }
       
-     // wait(1);
+      wait(1);