proba1
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
main.cpp
- Committer:
- shinoku99
- Date:
- 2020-05-18
- Revision:
- 1:d168af8a9cbc
- Parent:
- 0:e7ba689326e2
File content as of revision 1:d168af8a9cbc:
#include "mbed.h" #include "KeyboardTsLcd.h" #include "Led_Lcd.h" #include "Keyboard_Ts.h" int main(){ KeyboardTsLcd Keyboard(0); LedLcd Led(2); while(1){ enum KeyboardState eBtn = Keyboard.eRead(); switch(eBtn){ case BUTTON_0: Led.On(3); break; case BUTTON_1: Led.On(2); break; case BUTTON_2: Led.On(1); break; case BUTTON_3: Led.On(0); break; default: Led.On(4); break; } wait(0.1); } }