Arkadiusz Pępkowski / Mbed 2 deprecated z2_2

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers KeyboardTsLcd.cpp Source File

KeyboardTsLcd.cpp

00001 #include "KeyboardTsLcd.h"
00002 
00003 KeyboardTsLcd::KeyboardTsLcd(unsigned char ucColumnNr){
00004     pKeyboard = new KeyboardTs(ucColumnNr);
00005     pLed      = new LedLcd(ucColumnNr);
00006 }
00007 
00008 void KeyboardTsLcd::eRead(void){
00009     switch(pKeyboard -> eRead()){
00010         case BUTTON_0:
00011             pLed -> On(0);
00012             break;
00013         case BUTTON_1:
00014             pLed -> On(1);
00015             break;
00016         case BUTTON_2:
00017             pLed -> On(2);
00018             break;
00019         case BUTTON_3:
00020             pLed -> On(3);
00021             break;
00022         default:
00023             pLed -> On(4);
00024             break;
00025     }
00026 }