
AGH UST mbed part 3
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Led.h@4:459a0389bb9f, 2020-06-16 (annotated)
- Committer:
- matis755
- Date:
- Tue Jun 16 09:35:53 2020 +0000
- Revision:
- 4:459a0389bb9f
- Parent:
- 2:db40a2b0b177
dd
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
matis755 | 2:db40a2b0b177 | 1 | #ifndef LED |
matis755 | 2:db40a2b0b177 | 2 | #define LED |
matis755 | 2:db40a2b0b177 | 3 | |
matis755 | 2:db40a2b0b177 | 4 | #include "mbed.h" |
matis755 | 2:db40a2b0b177 | 5 | |
matis755 | 2:db40a2b0b177 | 6 | class Led { |
matis755 | 2:db40a2b0b177 | 7 | public: |
matis755 | 2:db40a2b0b177 | 8 | Led(unsigned char ucColIdx, unsigned char ucRowIdx); |
matis755 | 2:db40a2b0b177 | 9 | void On(); |
matis755 | 2:db40a2b0b177 | 10 | void Off(); |
matis755 | 2:db40a2b0b177 | 11 | private: |
matis755 | 2:db40a2b0b177 | 12 | unsigned char ucColumn, ucRow; |
matis755 | 2:db40a2b0b177 | 13 | void Redraw(uint32_t Color); |
matis755 | 2:db40a2b0b177 | 14 | }; |
matis755 | 2:db40a2b0b177 | 15 | |
matis755 | 2:db40a2b0b177 | 16 | #endif |