Fixed MoveReverse

Files at this revision

API Documentation at this revision

Comitter:
27e08e1e-4785-4bb4-b751-624c9c99ee9f
Date:
Mon Dec 13 15:05:47 2021 +0000
Parent:
0:8a14924886c4
Commit message:
Fixed the MoveReverse

Changed in this revision

ULN2003.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ULN2003.cpp	Tue Mar 05 13:18:24 2019 +0000
+++ b/ULN2003.cpp	Mon Dec 13 15:05:47 2021 +0000
@@ -94,7 +94,8 @@
     int delay_us_value = (1.0/speed)*1000000; // speed is in Hz = steps/sec
     
     for (int i=0; i<steps; i++) {
-        stepForward();
+        //stepForward();
+        stepReverse();
         wait_us(delay_us_value);
     }
     relax();