Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Keyboard_Ts.h@0:8a0ef2058732, 2016-04-23 (annotated)
- Committer:
- Dom952
- Date:
- Sat Apr 23 17:52:16 2016 +0000
- Revision:
- 0:8a0ef2058732
a
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Dom952 | 0:8a0ef2058732 | 1 | #ifndef KEYBOARD_TS_H |
| Dom952 | 0:8a0ef2058732 | 2 | #define KEYBOARD_TS_H |
| Dom952 | 0:8a0ef2058732 | 3 | |
| Dom952 | 0:8a0ef2058732 | 4 | #include "TS_DISCO_F429ZI.h" |
| Dom952 | 0:8a0ef2058732 | 5 | |
| Dom952 | 0:8a0ef2058732 | 6 | enum KeyboardTsState { RELASED , BUTTON_0 , BUTTON_1 , BUTTON_2 , BUTTON_3 }; |
| Dom952 | 0:8a0ef2058732 | 7 | |
| Dom952 | 0:8a0ef2058732 | 8 | class KeyboardTs{ |
| Dom952 | 0:8a0ef2058732 | 9 | public: |
| Dom952 | 0:8a0ef2058732 | 10 | KeyboardTs (unsigned char); |
| Dom952 | 0:8a0ef2058732 | 11 | enum KeyboardTsState eRead (void); |
| Dom952 | 0:8a0ef2058732 | 12 | private: |
| Dom952 | 0:8a0ef2058732 | 13 | unsigned char Column; |
| Dom952 | 0:8a0ef2058732 | 14 | uint16_t x, y; |
| Dom952 | 0:8a0ef2058732 | 15 | TS_DISCO_F429ZI ts; |
| Dom952 | 0:8a0ef2058732 | 16 | TS_StateTypeDef TS_State; |
| Dom952 | 0:8a0ef2058732 | 17 | }; |
| Dom952 | 0:8a0ef2058732 | 18 | |
| Dom952 | 0:8a0ef2058732 | 19 | #endif |