mbeed1sdf
Dependencies: BSP_DISCO_F429ZI LCD_DISCO_F429ZI TS_DISCO_F429ZI mbed
Fork of 2D_2_ by
Diff: main.cpp
- Revision:
- 0:1f84f23f3814
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon May 29 14:37:50 2017 +0000 @@ -0,0 +1,34 @@ +#include "KeyboardTsLcd.h" + +int main() +{ + KeyboardTsLcd Keyboard(0); + LedLcd LedMirror(2); + + while(1) { + + switch(Keyboard.eRead()) { + case BUTTON_0: + LedMirror.On(3); + break; + + case BUTTON_1: + LedMirror.On(2); + break; + + case BUTTON_2: + LedMirror.On(1); + break; + + case BUTTON_3: + LedMirror.On(0); + break; + + default : + LedMirror.On(4); + break; + + } + wait(0.1); + } +} \ No newline at end of file