proba1
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
KeyboardTsLcd.cpp
00001 #include "mbed.h" 00002 #include "KeyboardTsLcd.h" 00003 00004 KeyboardTsLcd::KeyboardTsLcd(unsigned char _ucColumn){ 00005 pKeyboard = new KeyboardTs(_ucColumn); 00006 pLed = new LedLcd(_ucColumn); 00007 } 00008 00009 enum KeyboardState KeyboardTsLcd::eRead(){ 00010 switch(pKeyboard -> eRead()){ 00011 case BUTTON_0: 00012 pLed -> On(0); 00013 return BUTTON_0; 00014 case BUTTON_1: 00015 pLed -> On(1); 00016 return BUTTON_1; 00017 case BUTTON_2: 00018 pLed -> On(2); 00019 return BUTTON_2; 00020 case BUTTON_3: 00021 pLed -> On(3); 00022 return BUTTON_3; 00023 default: 00024 pLed -> On(4); 00025 return RELEASED; 00026 } 00027 }
Generated on Sun Jul 17 2022 05:58:30 by 1.7.2