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.h
- Revision:
- 1:c8f423bfe891
- Parent:
- 0:a2a53dc49e0d
diff -r a2a53dc49e0d -r c8f423bfe891 DRV8825.h
--- a/DRV8825.h Thu Dec 10 03:26:03 2015 +0000
+++ b/DRV8825.h Fri Dec 11 15:50:02 2015 +0000
@@ -11,9 +11,11 @@
void settings(float microstep, int dir, float speed);
void enable();
void disable();
+ DigitalOut stepPin;
+ DigitalOut direction;
private:
DigitalOut en;
BusOut microstepping;
- DigitalOut stepPin;
- DigitalOut direction;
+ //DigitalOut stepPin;
+ //DigitalOut direction;
};
\ No newline at end of file