Display driver for the Vives city game
Diff: Display.h
- Revision:
- 5:06eccc902247
- Parent:
- 4:f056a09af806
diff -r f056a09af806 -r 06eccc902247 Display.h --- a/Display.h Mon May 08 20:01:50 2017 +0000 +++ b/Display.h Mon May 15 17:52:42 2017 +0000 @@ -14,6 +14,13 @@ int hours; int minutes; int seconds; + int status; + int distance; + int radius; + + bool position; + + std::string description; PwmOut* backlight; std::string emptyRow; @@ -24,15 +31,20 @@ public: Display(); void setBacklight( float lvl ); - void setTime( int houres, int minutes, int seconds ); + void setTime( int hours, int minutes, int seconds ); + void topBarRedraw( void ); void setStatusBattery( float batteryLvl ); - void setStatusGps( bool gpsFix ); - void setStatusLora( bool lora, int loraStatus ); + void setStatusGps( int gpsFix ); + void setStatusLora( int lora, int loraStatus ); + void setMenuScreen( void ); virtual void setStartScreen( void ); virtual void setMissionScreen( std::string description, int distance, int radius ); virtual void setMessageScreen( std::string description ); virtual void setEndScreen( void ); + void setStatusScreen( void ); void topBar(bool topBar); + + void eventHandler( char key ); };