My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Diff: main.cpp
- Revision:
- 39:7bb23ad4bf87
- Parent:
- 38:f1c571d22919
- Child:
- 41:204e2788fb46
--- a/main.cpp Sat Oct 08 18:40:44 2016 +0200 +++ b/main.cpp Sat Oct 08 17:06:25 2016 +0000 @@ -80,6 +80,8 @@ { if( nextScreen != currentScreen ) { + Thread::wait(100); + if( activeScreen != NULL) delete activeScreen; @@ -125,9 +127,7 @@ activeScreen = new CalibrateScreen(&nextScreen, &ballOnPlate, &calStarted, &calFinished, &calPoint, &calHeldTime); break; } - activeScreen->Draw(); - Thread::wait(200); currentScreen = nextScreen; } @@ -139,7 +139,7 @@ void Init() { - ImageFromSD("Splash.txt"); + ImageFromSD splash("/sd/Splash.txt"); pc.baud(57600); nextScreen = Screen::MAIN_MENU_SCREEN;