Display driver for the Vives city game
Revision 6:658fac9f3ffd, committed 2017-05-15
- Comitter:
- atomicLogic
- Date:
- Mon May 15 18:15:46 2017 +0000
- Parent:
- 5:06eccc902247
- Child:
- 7:f2050f77de0b
- Commit message:
- babla
Changed in this revision
Display.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Display.cpp Mon May 15 17:52:42 2017 +0000 +++ b/Display.cpp Mon May 15 18:15:46 2017 +0000 @@ -61,6 +61,9 @@ void Display::topBarRedraw( void ) { + if(topBarEnable) + { + char buffer[10]; std::string time = ""; @@ -88,6 +91,7 @@ lcd->printf("\2\1"); lcd->locate(6,0); lcd->printf( time.c_str()); + } } void Display::setStatusBattery( float batteryLvl ) @@ -258,8 +262,8 @@ { position = ! position; + Display::clearScreen(); Display::topBar( 1 ); - Display::clearScreen(); if( position ) @@ -295,12 +299,12 @@ { switch( key ) { - case 2: + case '2': { Display::setMenuScreen(); } break; - case 5: + case '5': { if( position ) { @@ -315,7 +319,7 @@ } break; - case 8: + case '8': { Display::setMenuScreen(); }