A simple stepper motor driver library, supporting micro-stepping drivers such as the Pololu A4988 stepper driver carrier or the Sparkfun EasyDriver.

Dependents:   Robot2016_2-0_STATIC Robot2016_2-0

Fork of StepperMotor by Matthew Else

Revision:
1:e34729a7567f
Parent:
0:52fb09e87581
Child:
2:1cec7e9117f2
diff -r 52fb09e87581 -r e34729a7567f Stepper.h
--- a/Stepper.h	Sun Feb 24 16:23:02 2013 +0000
+++ b/Stepper.h	Tue Apr 05 14:58:59 2016 +0000
@@ -4,16 +4,15 @@
 
 #include "mbed.h"
 
-class stepper
+class Stepper
 {
 public:
-    stepper(PinName _en, PinName ms1, PinName ms2, PinName ms3, PinName _stepPin, PinName dir);
-    void step(int microstep, int dir, float speed);
+    Stepper(PinName _en, PinName _stepPin, PinName dir);
+    void step(int number, int dir, float speed);
     void enable();
     void disable();
 private:
     DigitalOut en;
-    BusOut microstepping;
     DigitalOut stepPin;
     DigitalOut direction;
 };
\ No newline at end of file