cw2d-2

Dependencies:   LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI

main.cpp

Committer:
wolve265
Date:
2020-05-11
Revision:
1:a89a995856ce
Parent:
0:6d0b62cb7525

File content as of revision 1:a89a995856ce:

#include "mbed.h"
#include "KeyboardTsLcd.h"

int main(){
    KeyboardTsLcd Keyboard(0);
    KeyboardTsLcd Keyboard2(2);
    
    while(1) {
        switch(Keyboard.eRead()){
            case BUTTON_0:
                Keyboard2.pLed->On(3);
            break;
            case BUTTON_1:
                Keyboard2.pLed->On(2);
            break;
            case BUTTON_2:
                Keyboard2.pLed->On(1);
            break;
            case BUTTON_3:
                Keyboard2.pLed->On(0);
            break;
            default:
                Keyboard2.pLed->On(4);
            break;
        }
        wait(0.1);
    }
}