Mark Schwarzer / Mbed 2 deprecated Schwarzer_A6_1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
markschwarzer
Date:
Tue Nov 03 18:35:31 2020 +0000
Parent:
1:e1139c05dee9
Commit message:
final, compiles

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e1139c05dee9 -r d717847767b9 main.cpp
--- a/main.cpp	Mon Nov 02 16:04:30 2020 +0000
+++ b/main.cpp	Tue Nov 03 18:35:31 2020 +0000
@@ -70,6 +70,9 @@
             servo=angle+30.0;
             wait(1);
             }
+        else if (angle==180) {
+            servo=0;
+            }
         angle = 0;
         pc.printf("Test servo behavior here!");
         //Run through angles from 0 to 180 ad nauseum: