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: MBED1zadD2 mbed BSP_DISCO_F429ZI
KeyboardTsLcd.cpp
00001 #include "KeyboardTsLcd.h" 00002 00003 KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn){ 00004 pKeyboard = new KeyboardTs(_ucColumn); 00005 pLed = new LedLcd(_ucColumn); 00006 } 00007 00008 enum eButtonStates KeyboardTsLcd::eRead(){ 00009 enum eButtonStates eReturnValue; 00010 switch(pKeyboard->eRead()) { 00011 case BUTTON_0: 00012 eReturnValue=BUTTON_0; 00013 pLed->On(0); 00014 break; 00015 case BUTTON_1: 00016 eReturnValue=BUTTON_1; 00017 pLed->On(1); 00018 break; 00019 case BUTTON_2: 00020 eReturnValue=BUTTON_2; 00021 pLed->On(2); 00022 break; 00023 case BUTTON_3: 00024 eReturnValue=BUTTON_3; 00025 pLed->On(3); 00026 break; 00027 default : 00028 eReturnValue=NONE; 00029 pLed->On(4); 00030 break; 00031 } 00032 return eReturnValue; 00033 }
Generated on Fri Jul 15 2022 15:56:12 by
1.7.2