
MBED1_d2
Dependencies: MBED1zadD2 mbed BSP_DISCO_F429ZI
Diff: main.cpp
- Revision:
- 0:a4ef65ad159f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat May 23 18:55:52 2020 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" +#include "KeyboardTsLcd.h" + + + +int main() { + KeyboardTsLcd LeftKeyboard(0); + LedLcd RightLed(2); + + while(1) { + switch(LeftKeyboard.eRead()) { + case BUTTON_0: + RightLed.On(3); + break; + case BUTTON_1: + RightLed.On(2); + break; + case BUTTON_2: + RightLed.On(1); + break; + case BUTTON_3: + RightLed.On(0); + break; + default : + RightLed.On(4); + break; + } + wait(0.1); + } +} \ No newline at end of file