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.
Revision 0:bde7434e8e7c, committed 2020-06-01
- Comitter:
- kacpergaweda
- Date:
- Mon Jun 01 11:13:35 2020 +0000
- Commit message:
- MBED cz1 GAWEDA
Changed in this revision
KeyboardTsLcd.cpp | Show annotated file Show diff for this revision Revisions of this file |
KeyboardTsLcd.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r bde7434e8e7c KeyboardTsLcd.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/KeyboardTsLcd.cpp Mon Jun 01 11:13:35 2020 +0000 @@ -0,0 +1,37 @@ +#include "KeyboardTs.h" +#include "LedLcd.h" +#include "mbed.h" +#include "KeyboardTsLcd.h" + +KeyboardTs *pKeyboard; +LedLcd *pLed; + +KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn) +{ +pKeyboard = new KeyboardTs(_ucColumn); +pLed = new LedLcd(_ucColumn); +} + + + +enum eKEYBOARD_KEY 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 NOT_TOUCHED; + } + +} \ No newline at end of file
diff -r 000000000000 -r bde7434e8e7c KeyboardTsLcd.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/KeyboardTsLcd.h Mon Jun 01 11:13:35 2020 +0000 @@ -0,0 +1,15 @@ +#ifndef KEYBOARDTSLCD_H +#define KEYBOARDTSLCD_H + + +class KeyboardTsLcd{ + public: + enum eKEYBOARD_KEY eRead(void); + KeyboardTsLcd(unsigned char _ucColumn); +}; + + + + + +#endif \ No newline at end of file