Mbed cz.1 cwiczenie ostatnie (2d2)
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
main.cpp
- Committer:
- dzialowy04
- Date:
- 2020-05-18
- Revision:
- 0:036c13c6cbb6
File content as of revision 0:036c13c6cbb6:
#include "mbed.h" #include "KeyboardTsLcd.h" int main(){ LedLcd Led(2); KeyboardTsLcd Keyboard(0); while(1){ switch(Keyboard.eRead()){ 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); } }