mbed2 zad 5b
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
SERVO_GUI/ServoGui.h
- Committer:
- krzysiek99
- Date:
- 2020-06-09
- Revision:
- 5:cafab5a4d1c9
- Parent:
- 4:7855d3ab4c15
File content as of revision 5:cafab5a4d1c9:
#ifndef SERVO_GUI_H #define SERVO_GUI_H #include "LCD_DISCO_F429ZI.h" enum Direction{LEFT, RIGHT}; enum DetectorState{ACTIVE, INACTIVE}; class ServoGui { public: ServoGui(unsigned int uiDetectorInitialPosition = 0); void LedStepLeft(void); void LedStepRight(void); void DetectorStepLeft(void); void DetectorStepRight(void); DetectorState eDetectorRead(void); private: LCD_DISCO_F429ZI lcd; unsigned char ucLedPosition; unsigned int uiDetectorPosition; void DrawBackground(void); void DrawMotor(void); void DrawDetectorPosition(unsigned int uiPosition); void DrawLeds(void); void ClearLeds(void); void SetLed(unsigned char ucLedNumber); void StepLed(Direction eDirection); }; #else #error "This class was definied previously" #endif