Fully functional driver for the DRV88255 stepper motor driver. Includes microstepping, speed, disable and enable.
Dependents: Lidar_2D_Mapping Water Play Water_pump Lidar_2D_Mapping
Diff: DRV8825.cpp
- Revision:
- 1:c8f423bfe891
- Parent:
- 0:a2a53dc49e0d
--- a/DRV8825.cpp Thu Dec 10 03:26:03 2015 +0000 +++ b/DRV8825.cpp Fri Dec 11 15:50:02 2015 +0000 @@ -3,7 +3,7 @@ DigitalOut myled(LED1); -DRV88255::DRV8825(PinName _en, PinName m0, PinName m1, PinName m2, PinName _stepPin, PinName dir):en(_en), +DRV8825::DRV8825(PinName _en, PinName m0, PinName m1, PinName m2, PinName _stepPin, PinName dir):en(_en), microstepping(m0, m1, m2), stepPin(_stepPin), direction(dir)