Finalny program mbed2
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
led.h@0:33ff53112cc9, 2020-06-09 (annotated)
- Committer:
- azmuth_sd
- Date:
- Tue Jun 09 08:24:40 2020 +0000
- Revision:
- 0:33ff53112cc9
Ostatni program drugiej czesci mbed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
azmuth_sd | 0:33ff53112cc9 | 1 | #ifndef LED_H |
azmuth_sd | 0:33ff53112cc9 | 2 | #define LED_H |
azmuth_sd | 0:33ff53112cc9 | 3 | |
azmuth_sd | 0:33ff53112cc9 | 4 | #include "LCD_DISCO_F429ZI.h" |
azmuth_sd | 0:33ff53112cc9 | 5 | |
azmuth_sd | 0:33ff53112cc9 | 6 | enum LedDirection {LEFT, RIGHT}; |
azmuth_sd | 0:33ff53112cc9 | 7 | |
azmuth_sd | 0:33ff53112cc9 | 8 | class Led { |
azmuth_sd | 0:33ff53112cc9 | 9 | |
azmuth_sd | 0:33ff53112cc9 | 10 | private: |
azmuth_sd | 0:33ff53112cc9 | 11 | LCD_DISCO_F429ZI lcd; |
azmuth_sd | 0:33ff53112cc9 | 12 | char ucServoPos; |
azmuth_sd | 0:33ff53112cc9 | 13 | void Step (enum LedDirection Direction); |
azmuth_sd | 0:33ff53112cc9 | 14 | void On(unsigned char ucLedIndeks); |
azmuth_sd | 0:33ff53112cc9 | 15 | |
azmuth_sd | 0:33ff53112cc9 | 16 | public: |
azmuth_sd | 0:33ff53112cc9 | 17 | Led( void ); |
azmuth_sd | 0:33ff53112cc9 | 18 | void StepLeft(void); |
azmuth_sd | 0:33ff53112cc9 | 19 | void StepRight(void); |
azmuth_sd | 0:33ff53112cc9 | 20 | }; |
azmuth_sd | 0:33ff53112cc9 | 21 | |
azmuth_sd | 0:33ff53112cc9 | 22 | #endif |