
last version
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: keyboard_ts_lcd.cpp
- Revision:
- 2:e23243b26a23
- Parent:
- 1:d562d46c33b7
--- a/keyboard_ts_lcd.cpp Wed May 20 07:59:22 2020 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -#include "keyboard_ts_lcd.h" - -KeyboardTsLcd::KeyboardTsLcd(uint8_t ui8Column) { - pKeyboard = new KeyboardTs(ui8Column); - pLed = new LedLcd(ui8Column); - }; - - -enum KeyboardState KeyboardTsLcd::eRead(){ - switch(pKeyboard->eRead()){ - case BUTTON_0: - pLed->On(0); - return BUTTON_0; - case BUTTON_1: - pLed->On(1); - return BUTTON_1; - case BUTTON_2: - pLed->On(2); - return BUTTON_2; - case BUTTON_3: - pLed->On(3); - return BUTTON_3; - default : - pLed->On(4); - return RELEASED; - } - }; \ No newline at end of file