Class library for a Stepper Motor to be able to Select amount of steps,set the time interval between steps, run stepper motor freely and stop the stepper motor.

Revision:
2:bfdd7246ac5e
Parent:
0:b0c267f9cc05
--- a/Stepper.cpp	Fri Mar 03 10:30:05 2017 +0000
+++ b/Stepper.cpp	Thu Mar 09 06:22:37 2017 +0000
@@ -39,13 +39,13 @@
     
 }
 
-void Stepper::Direction(int dir) 
+void Stepper::Direction(bool dir) 
 {   
-    if(dir == 1)
+    if(dir == true)
     {
         StepDir = 1;
     }
-    else if(dir == -1)
+    else if(dir == false)
     {
         StepDir = -1;  
     }