AGH UST mbed part 3
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Keyboard.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 KEYBOARD_ |
matis755 | 2:db40a2b0b177 | 2 | #define KEYBOARD |
matis755 | 0:f4a48c08fea7 | 3 | |
matis755 | 0:f4a48c08fea7 | 4 | #include "TS_DISCO_F429ZI.h" |
matis755 | 0:f4a48c08fea7 | 5 | |
matis755 | 0:f4a48c08fea7 | 6 | enum KeyboardState{ |
matis755 | 0:f4a48c08fea7 | 7 | RELASED, |
matis755 | 1:36b3fd4a01fd | 8 | BUTTON_0, |
matis755 | 0:f4a48c08fea7 | 9 | BUTTON_1, |
matis755 | 0:f4a48c08fea7 | 10 | BUTTON_2, |
matis755 | 1:36b3fd4a01fd | 11 | BUTTON_3 |
matis755 | 0:f4a48c08fea7 | 12 | }; |
matis755 | 0:f4a48c08fea7 | 13 | |
matis755 | 2:db40a2b0b177 | 14 | class Keyboard : private TS_DISCO_F429ZI { |
matis755 | 0:f4a48c08fea7 | 15 | private: |
matis755 | 0:f4a48c08fea7 | 16 | unsigned char ucColIdx; |
matis755 | 0:f4a48c08fea7 | 17 | public: |
matis755 | 2:db40a2b0b177 | 18 | Keyboard(unsigned char); |
matis755 | 0:f4a48c08fea7 | 19 | enum KeyboardState eRead(void); |
matis755 | 0:f4a48c08fea7 | 20 | |
matis755 | 0:f4a48c08fea7 | 21 | }; |
matis755 | 0:f4a48c08fea7 | 22 | |
matis755 | 0:f4a48c08fea7 | 23 | #endif |