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.
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
KeyboardTsLcd.cpp
- Committer:
- azmuth_sd
- Date:
- 2020-05-10
- Revision:
- 0:15cfee7b5bad
File content as of revision 0:15cfee7b5bad:
#include "KeyboardTsLcd.h" #include "Keyboard_Ts.h" KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn) { pKeyboard = new KeyboardTs(_ucColumn); pLed = new LedLcd(_ucColumn); }; enum Buttons 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; } }