a
Dependencies: BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed
Fork of Mbed1d-2 by
Keyboard_TS.h@0:9b028a92ac8a, 2017-04-24 (annotated)
- Committer:
- pbl96
- Date:
- Mon Apr 24 15:26:38 2017 +0000
- Revision:
- 0:9b028a92ac8a
Mbed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pbl96 | 0:9b028a92ac8a | 1 | #ifndef KEYBOARD_TS_H |
pbl96 | 0:9b028a92ac8a | 2 | #define KEYBOARD_TS_H |
pbl96 | 0:9b028a92ac8a | 3 | |
pbl96 | 0:9b028a92ac8a | 4 | |
pbl96 | 0:9b028a92ac8a | 5 | enum KeyboardState{ |
pbl96 | 0:9b028a92ac8a | 6 | RELASED, |
pbl96 | 0:9b028a92ac8a | 7 | BUTTON_0, |
pbl96 | 0:9b028a92ac8a | 8 | BUTTON_1, |
pbl96 | 0:9b028a92ac8a | 9 | BUTTON_2, |
pbl96 | 0:9b028a92ac8a | 10 | BUTTON_3}; |
pbl96 | 0:9b028a92ac8a | 11 | |
pbl96 | 0:9b028a92ac8a | 12 | class KeyboardTs{ |
pbl96 | 0:9b028a92ac8a | 13 | public: |
pbl96 | 0:9b028a92ac8a | 14 | virtual enum KeyboardState eRead(); |
pbl96 | 0:9b028a92ac8a | 15 | KeyboardTs(uint8_t); |
pbl96 | 0:9b028a92ac8a | 16 | private: |
pbl96 | 0:9b028a92ac8a | 17 | uint8_t column; |
pbl96 | 0:9b028a92ac8a | 18 | |
pbl96 | 0:9b028a92ac8a | 19 | }; |
pbl96 | 0:9b028a92ac8a | 20 | |
pbl96 | 0:9b028a92ac8a | 21 | #endif |