test

Dependencies:   Servo

Files at this revision

API Documentation at this revision

Comitter:
gorazdko
Date:
Sun Jun 02 12:16:38 2019 +0000
Parent:
48:4ac030bc2910
Commit message:
release

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4ac030bc2910 -r 6ebde58afad3 main.cpp
--- 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);