code review

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Committer:
thepaueu
Date:
Thu May 14 18:45:14 2020 +0000
Revision:
0:db2c7dc10f89
Pawel Majtas cw 2d2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thepaueu 0:db2c7dc10f89 1 #ifndef _KEYBOARDTS_H
thepaueu 0:db2c7dc10f89 2 #define _KEYBOARDTS_H
thepaueu 0:db2c7dc10f89 3
thepaueu 0:db2c7dc10f89 4 #include "TS_DISCO_F429ZI.h"
thepaueu 0:db2c7dc10f89 5
thepaueu 0:db2c7dc10f89 6 enum BUTTON {
thepaueu 0:db2c7dc10f89 7 BUTTON_0,
thepaueu 0:db2c7dc10f89 8 BUTTON_1,
thepaueu 0:db2c7dc10f89 9 BUTTON_2,
thepaueu 0:db2c7dc10f89 10 BUTTON_3,
thepaueu 0:db2c7dc10f89 11 NONE
thepaueu 0:db2c7dc10f89 12 };
thepaueu 0:db2c7dc10f89 13
thepaueu 0:db2c7dc10f89 14 class KeyboardTs{
thepaueu 0:db2c7dc10f89 15
thepaueu 0:db2c7dc10f89 16 public:
thepaueu 0:db2c7dc10f89 17 KeyboardTs(unsigned char);
thepaueu 0:db2c7dc10f89 18 enum BUTTON eRead(void);
thepaueu 0:db2c7dc10f89 19
thepaueu 0:db2c7dc10f89 20 private:
thepaueu 0:db2c7dc10f89 21 TS_DISCO_F429ZI ts;
thepaueu 0:db2c7dc10f89 22 unsigned char ucColumn;
thepaueu 0:db2c7dc10f89 23
thepaueu 0:db2c7dc10f89 24 };
thepaueu 0:db2c7dc10f89 25
thepaueu 0:db2c7dc10f89 26
thepaueu 0:db2c7dc10f89 27 #endif