Aa
Dependents: EMBEED_III_zad_4 mbed3 mbed_3 MBED3_zad4
LED/Led.h@1:036ba0fc54a5, 2020-06-13 (annotated)
- Committer:
- krzysiek99
- Date:
- Sat Jun 13 13:28:57 2020 +0000
- Revision:
- 1:036ba0fc54a5
Ledboard;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
krzysiek99 | 1:036ba0fc54a5 | 1 | #ifndef LED_H |
krzysiek99 | 1:036ba0fc54a5 | 2 | #define LED_H |
krzysiek99 | 1:036ba0fc54a5 | 3 | #include "LCD_DISCO_F429ZI.h" |
krzysiek99 | 1:036ba0fc54a5 | 4 | |
krzysiek99 | 1:036ba0fc54a5 | 5 | class Led |
krzysiek99 | 1:036ba0fc54a5 | 6 | { |
krzysiek99 | 1:036ba0fc54a5 | 7 | public: |
krzysiek99 | 1:036ba0fc54a5 | 8 | Led(unsigned char ucColumn, unsigned char ucRow); |
krzysiek99 | 1:036ba0fc54a5 | 9 | void On(void); |
krzysiek99 | 1:036ba0fc54a5 | 10 | void Off(void); |
krzysiek99 | 1:036ba0fc54a5 | 11 | private: |
krzysiek99 | 1:036ba0fc54a5 | 12 | unsigned char ucColumn, ucRow; |
krzysiek99 | 1:036ba0fc54a5 | 13 | void Redraw(uint32_t Color); |
krzysiek99 | 1:036ba0fc54a5 | 14 | }; |
krzysiek99 | 1:036ba0fc54a5 | 15 | #else |
krzysiek99 | 1:036ba0fc54a5 | 16 | #error "This class was definied previously" |
krzysiek99 | 1:036ba0fc54a5 | 17 | #endif |