a
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: stepper.h
- Revision:
- 4:e48aee3e8d09
- Child:
- 5:3c19c3ae6286
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stepper.h Thu May 21 11:03:32 2020 +0000 @@ -0,0 +1,21 @@ +#ifndef STEPPER +#define STEPPER + +#include "led.h" + +class Stepper { + private: + DigitalIn Button; + Led MyLed; + unsigned char ucLedIdx, ucCurrentPos, ucDesiredPos; + void Step(enum Step); + void StepLeft(void); + void StepRight(void); + public: + Stepper(); + void Callib(void); + void Goto(unsigned char); + void Step(unsigned char); +}; + +#endif \ No newline at end of file