![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Anim
Dependencies: BSP_DISCO_F429ZI EEPROM_DISCO_F429ZI FT810 GYRO_DISCO_F429ZI KEYPAD_DISCO_F429ZI LCD_DISCO_F429ZI PinDetect SDRAM_DISCO_F429ZI TS_DISCO_F429ZI mbed
Diff: Stepper.h
- Revision:
- 1:2ceb29686290
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Stepper.h Wed Jan 24 13:10:37 2018 +0000 @@ -0,0 +1,19 @@ +#ifndef MBED_STEPPER_H +#define MBED_STEPPER_H +#endif + +#include "mbed.h" + +class stepper +{ +public: + stepper(PinName _en, PinName _stepPin, PinName dir); + void step(int microstep, int dir, float speed); + void enable(); + void disable(); +private: + DigitalOut en; + DigitalOut stepPin; + DigitalOut direction; +}; + \ No newline at end of file