Aa
Dependents: EMBEED_III_zad_4 mbed3 mbed_3 MBED3_zad4
Keyboard.h@1:374a3d1fe780, 2020-06-13 (annotated)
- Committer:
- krzysiek99
- Date:
- Sat Jun 13 13:28:40 2020 +0000
- Revision:
- 1:374a3d1fe780
Keyboard;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
krzysiek99 | 1:374a3d1fe780 | 1 | #ifndef KEYBOARD_H |
krzysiek99 | 1:374a3d1fe780 | 2 | #define KEYBOARD_H |
krzysiek99 | 1:374a3d1fe780 | 3 | #include "TS_DISCO_F429ZI.h" |
krzysiek99 | 1:374a3d1fe780 | 4 | enum KeyboardState |
krzysiek99 | 1:374a3d1fe780 | 5 | { |
krzysiek99 | 1:374a3d1fe780 | 6 | BUTTON_0 = 0, |
krzysiek99 | 1:374a3d1fe780 | 7 | BUTTON_1 = 1, |
krzysiek99 | 1:374a3d1fe780 | 8 | BUTTON_2 = 2, |
krzysiek99 | 1:374a3d1fe780 | 9 | BUTTON_3 = 3, |
krzysiek99 | 1:374a3d1fe780 | 10 | RELEASED = 4 |
krzysiek99 | 1:374a3d1fe780 | 11 | }; |
krzysiek99 | 1:374a3d1fe780 | 12 | class Keyboard |
krzysiek99 | 1:374a3d1fe780 | 13 | { |
krzysiek99 | 1:374a3d1fe780 | 14 | public: |
krzysiek99 | 1:374a3d1fe780 | 15 | Keyboard(unsigned char ucColumnMode); |
krzysiek99 | 1:374a3d1fe780 | 16 | enum KeyboardState eRead(void); |
krzysiek99 | 1:374a3d1fe780 | 17 | private: |
krzysiek99 | 1:374a3d1fe780 | 18 | TS_DISCO_F429ZI ts; |
krzysiek99 | 1:374a3d1fe780 | 19 | TS_StateTypeDef TS_State; |
krzysiek99 | 1:374a3d1fe780 | 20 | unsigned char ucTouchscreenColumn; |
krzysiek99 | 1:374a3d1fe780 | 21 | }; |
krzysiek99 | 1:374a3d1fe780 | 22 | #else |
krzysiek99 | 1:374a3d1fe780 | 23 | #error "This class was definied previously" |
krzysiek99 | 1:374a3d1fe780 | 24 | #endif |