with PWM

Dependencies:   DebounceIn mbed

Files at this revision

API Documentation at this revision

Comitter:
figlax
Date:
Mon Jul 13 23:18:00 2015 +0000
Parent:
0:fd99ff1f3a8b
Commit message:
Should be PWM. Not sure how recent.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jun 09 22:44:59 2015 +0000
+++ b/main.cpp	Mon Jul 13 23:18:00 2015 +0000
@@ -38,13 +38,14 @@
             if (swiRe==0){
                 indicFr = 0;
                 indicRe = 1;
+                
                 myled = 0;
                 motor.write(0.25f);
-                wait(.1);
+                wait(.2);
                 motor.write(0.35f);
-                wait(.1);
+                wait(.2);
                 motor.write(0.45f);
-                wait(.1);
+                wait(.2);
                 motor.write(0.55f);
                 wait(.1);
                 motor.write(0.65f);
@@ -56,7 +57,8 @@
                 motor.write(0.95f);
                 wait(.1);
                 motor.write(1.00f);
-                }
+                } 
+                
             while (swiRe==0){
                 indicFr = 0;
                 indicRe = 1;