![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FT810 DISCO-429ZI
Dependencies: BSP_DISCO_F429ZI EEPROM_DISCO_F429ZI FT810_DISCO-F429ZI GYRO_DISCO_F429ZI KEYPAD_DISCO_F429ZI LCD_DISCO_F429ZI SDRAM_DISCO_F429ZI TS_DISCO_F429ZI mbed
Diff: Stepper.h
- Revision:
- 1:2e00250c31c8
diff -r 4fcdf32ad508 -r 2e00250c31c8 Stepper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Stepper.h Wed Jan 10 07:08:31 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