
Initial version.
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Keyboard_TsLcd.cpp
- Revision:
- 0:00760a80f72b
- Child:
- 1:6a6bc6bc51b0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Keyboard_TsLcd.cpp Mon May 18 15:00:45 2020 +0000 @@ -0,0 +1,28 @@ +#include "Keyboard_TsLcd.h" + +KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn) +{ + pKeyboard = new KeyboardTs(_ucColumn); + pLed = new LedLcd(_ucColumn); +} + +enum State KeyboardTsLcd::eRead(void) +{ + 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 BUTTON_4; + } +} \ No newline at end of file