Paweł Woźniak / Mbed 2 deprecated mbedcz2_5

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers servo_gui.h Source File

servo_gui.h

00001 #ifndef SERVO_GUI_H
00002 #define SERVO_GUI_H
00003 
00004 #include "LCD_DISCO_F429ZI.h"
00005 
00006 enum StepDirection {RIGHT, LEFT};
00007 
00008 class ServoGui
00009 {
00010     public:
00011         ServoGui(void);
00012         void GuiStepLeft(void);
00013         void GuiStepRight(void);
00014         unsigned char ucReadDetector(void);
00015     private:
00016         void LedOn(unsigned char);
00017         void LedStep(enum StepDirection);
00018         void MotorStep(enum StepDirection);
00019         LCD_DISCO_F429ZI lcd;
00020         unsigned char ucLedCtr;
00021         unsigned int uiStepCounter;
00022         double dAngle;
00023 };
00024 
00025 #endif