dasf

Dependencies:   mbed a4988

Fork of Ex_Stepper by YX ZHANG

Revision:
1:6d4a62f98351
Parent:
0:19f886d481f3
Child:
2:c944fc6cdfb7
--- a/main.cpp	Wed Oct 11 03:38:41 2017 +0000
+++ b/main.cpp	Wed Oct 11 06:19:41 2017 +0000
@@ -16,15 +16,15 @@
 }
 
 int main() {
-    ticker_step.attach(&toggle_step, 0.001);
+    ticker_step.attach(&toggle_step, 0.0002);
     en = 0; //Enable stepper driver
     
     while (true) {
         dir = 0;
-        remain = 100;
-        wait(1);
+        remain = 3200;
+        wait(1.5);
         dir = 1;
-        remain = 100;
-        wait(1);
+        remain = 3200;
+        wait(1.5);
     }
 }