cw2d-2
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: KeyboardTsLcd.cpp
- Revision:
- 1:a89a995856ce
- Parent:
- 0:6d0b62cb7525
--- a/KeyboardTsLcd.cpp Fri May 08 09:17:00 2020 +0000 +++ b/KeyboardTsLcd.cpp Mon May 11 19:07:50 2020 +0000 @@ -5,22 +5,22 @@ pLed = new LedLcd(ucColumn); } -void KeyboardTsLcd::eRead(){ +enum KeyboardState KeyboardTsLcd::eRead(){ switch(pKeyboard->eRead()){ case BUTTON_0: pLed->On(0); - break; + return BUTTON_0; case BUTTON_1: pLed->On(1); - break; + return BUTTON_1; case BUTTON_2: pLed->On(2); - break; + return BUTTON_2; case BUTTON_3: pLed->On(3); - break; + return BUTTON_3; default : pLed->On(4); - break; + return RELEASED; } } \ No newline at end of file