a
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
stepper.h@5:3c19c3ae6286, 2020-05-22 (annotated)
- Committer:
- matis755
- Date:
- Fri May 22 07:21:44 2020 +0000
- Revision:
- 5:3c19c3ae6286
- Parent:
- 4:e48aee3e8d09
Add GUI,; Get ready to deploy
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
matis755 | 4:e48aee3e8d09 | 1 | #ifndef STEPPER |
matis755 | 4:e48aee3e8d09 | 2 | #define STEPPER |
matis755 | 4:e48aee3e8d09 | 3 | |
matis755 | 4:e48aee3e8d09 | 4 | #include "led.h" |
matis755 | 5:3c19c3ae6286 | 5 | #include "gui.h" |
matis755 | 4:e48aee3e8d09 | 6 | |
matis755 | 4:e48aee3e8d09 | 7 | class Stepper { |
matis755 | 4:e48aee3e8d09 | 8 | private: |
matis755 | 4:e48aee3e8d09 | 9 | DigitalIn Button; |
matis755 | 4:e48aee3e8d09 | 10 | Led MyLed; |
matis755 | 5:3c19c3ae6286 | 11 | Gui MyGui; |
matis755 | 4:e48aee3e8d09 | 12 | unsigned char ucLedIdx, ucCurrentPos, ucDesiredPos; |
matis755 | 4:e48aee3e8d09 | 13 | void Step(enum Step); |
matis755 | 4:e48aee3e8d09 | 14 | void StepLeft(void); |
matis755 | 4:e48aee3e8d09 | 15 | void StepRight(void); |
matis755 | 4:e48aee3e8d09 | 16 | public: |
matis755 | 5:3c19c3ae6286 | 17 | Stepper(void); |
matis755 | 4:e48aee3e8d09 | 18 | void Callib(void); |
matis755 | 4:e48aee3e8d09 | 19 | void Goto(unsigned char); |
matis755 | 4:e48aee3e8d09 | 20 | void Step(unsigned char); |
matis755 | 4:e48aee3e8d09 | 21 | }; |
matis755 | 4:e48aee3e8d09 | 22 | |
matis755 | 4:e48aee3e8d09 | 23 | #endif |