cw2d-2

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

KeyboardTsLcd.cpp

Committer:
wolve265
Date:
2020-05-08
Revision:
0:6d0b62cb7525
Child:
1:a89a995856ce

File content as of revision 0:6d0b62cb7525:

#include "KeyboardTsLcd.h"

KeyboardTsLcd::KeyboardTsLcd(unsigned char ucColumn){
    pKeyboard = new KeyboardTs(ucColumn);
    pLed = new LedLcd(ucColumn);
}

void KeyboardTsLcd::eRead(){
    switch(pKeyboard->eRead()){
        case BUTTON_0:
            pLed->On(0);
        break;
        case BUTTON_1:
            pLed->On(1);
        break;
        case BUTTON_2:
            pLed->On(2);
        break;
        case BUTTON_3:
            pLed->On(3);
        break;
        default :
            pLed->On(4);
        break;
    }
}