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