
Mbed touchscreed project. To be corrected
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
main.cpp
- Committer:
- piotrlopata
- Date:
- 2020-05-19
- Revision:
- 7:982fb1421824
- Parent:
- 1:55e05d2aa9cd
File content as of revision 7:982fb1421824:
#include "KeyboardTsLcd.h" int main() { KeyboardTsLcd Keyboard(0); KeyboardTsLcd Leds(2); while(1) { switch ( Keyboard.eRead() ) { case BUTTON_0: Leds.pLed->On(3); break; case BUTTON_1: Leds.pLed->On(2); break; case BUTTON_2: Leds.pLed->On(1); break; case BUTTON_3: Leds.pLed->On(0); break; default: Leds.pLed->On(4); break; } wait(0.1); } }