
zoba
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
ServoGUI.h@1:4fd32c2e7975, 2020-06-09 (annotated)
- Committer:
- bolko
- Date:
- Tue Jun 09 11:20:57 2020 +0000
- Revision:
- 1:4fd32c2e7975
- Parent:
- 0:befccd954577
filip;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
filipksiezyc | 0:befccd954577 | 1 | #ifndef SERVO_GUI |
filipksiezyc | 0:befccd954577 | 2 | #define SERVO_GUI |
filipksiezyc | 0:befccd954577 | 3 | |
filipksiezyc | 0:befccd954577 | 4 | #include "LCD_DISCO_F429ZI.h" |
filipksiezyc | 0:befccd954577 | 5 | |
filipksiezyc | 0:befccd954577 | 6 | #define NUMBER_OF_LEDS 4 |
filipksiezyc | 0:befccd954577 | 7 | |
filipksiezyc | 0:befccd954577 | 8 | |
filipksiezyc | 0:befccd954577 | 9 | struct sPoint{double X; double Y;}; |
filipksiezyc | 0:befccd954577 | 10 | |
filipksiezyc | 0:befccd954577 | 11 | class ServoGUI{ |
filipksiezyc | 0:befccd954577 | 12 | private: |
filipksiezyc | 0:befccd954577 | 13 | LCD_DISCO_F429ZI LCD_Display; |
filipksiezyc | 0:befccd954577 | 14 | sPoint sPosition; |
filipksiezyc | 0:befccd954577 | 15 | unsigned char ucCurrentPosition; |
filipksiezyc | 0:befccd954577 | 16 | unsigned char ucStepPosition; |
filipksiezyc | 0:befccd954577 | 17 | unsigned char ucCallibPosition; |
filipksiezyc | 0:befccd954577 | 18 | |
filipksiezyc | 0:befccd954577 | 19 | enum eDetectorState GetDetector(); |
filipksiezyc | 0:befccd954577 | 20 | void MovePos(enum eStep eDirection); |
filipksiezyc | 0:befccd954577 | 21 | void DrawServo(); |
filipksiezyc | 0:befccd954577 | 22 | void DrawLed(unsigned char ucCurrentLed=0,uint32_t uiLedColor=LCD_COLOR_WHITE); |
filipksiezyc | 0:befccd954577 | 23 | void Step(); |
filipksiezyc | 0:befccd954577 | 24 | public: |
filipksiezyc | 0:befccd954577 | 25 | ServoGUI(); |
filipksiezyc | 0:befccd954577 | 26 | void LedOn(unsigned char ucLed=0); |
filipksiezyc | 0:befccd954577 | 27 | void GoTo(unsigned char ucPosition); |
filipksiezyc | 0:befccd954577 | 28 | void Shift(unsigned char ucLed=0); |
filipksiezyc | 0:befccd954577 | 29 | void Callib(); |
filipksiezyc | 0:befccd954577 | 30 | }; |
filipksiezyc | 0:befccd954577 | 31 | |
filipksiezyc | 0:befccd954577 | 32 | #endif |