AGH UST MBED part 2
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
stepper.h@7:34a9bd9d3093, 2020-05-22 (annotated)
- Committer:
- matis755
- Date:
- Fri May 22 08:45:37 2020 +0000
- Revision:
- 7:34a9bd9d3093
- Parent:
- 5:3c19c3ae6286
Change to built-it replace function
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 |