Simon Dziadon / Mbed 2 deprecated mbed_cz2_5_test

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers led.h Source File

led.h

00001 #ifndef LED_H
00002 #define LED_H
00003 
00004 #include "LCD_DISCO_F429ZI.h"
00005 
00006 enum LedDirection {LEFT, RIGHT};
00007 
00008 class Led {
00009 
00010 private:
00011     LCD_DISCO_F429ZI lcd;
00012     char ucServoPos;
00013     void Step (enum LedDirection Direction);
00014     void On(unsigned char ucLedIndeks);
00015 
00016 public:
00017     Led( void );
00018     void StepLeft(void);
00019     void StepRight(void);
00020 };
00021 
00022 #endif