Display driver for the Vives city game

Dependencies:   TextLCD

Committer:
atomicLogic
Date:
Mon May 08 20:01:50 2017 +0000
Revision:
4:f056a09af806
Parent:
1:2196e0eba43a
Child:
5:06eccc902247
it compiles!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
atomicLogic 0:80ce68cdf568 1 #pragma once
atomicLogic 0:80ce68cdf568 2 #include "TextLCD.h"
atomicLogic 0:80ce68cdf568 3 #include "CostumCharacters.h"
atomicLogic 4:f056a09af806 4 #include "DisplayX.h"
atomicLogic 0:80ce68cdf568 5 #include <string>
atomicLogic 0:80ce68cdf568 6
atomicLogic 4:f056a09af806 7 class Display : public DisplayX
atomicLogic 0:80ce68cdf568 8 {
atomicLogic 0:80ce68cdf568 9
atomicLogic 0:80ce68cdf568 10 private:
atomicLogic 0:80ce68cdf568 11
atomicLogic 4:f056a09af806 12 bool topBarEnable;
atomicLogic 4:f056a09af806 13
atomicLogic 4:f056a09af806 14 int hours;
atomicLogic 4:f056a09af806 15 int minutes;
atomicLogic 4:f056a09af806 16 int seconds;
atomicLogic 4:f056a09af806 17
atomicLogic 4:f056a09af806 18 PwmOut* backlight;
atomicLogic 0:80ce68cdf568 19 std::string emptyRow;
atomicLogic 0:80ce68cdf568 20 TextLCD * lcd;
atomicLogic 0:80ce68cdf568 21 CostumCharacters * costumCharacters;
atomicLogic 0:80ce68cdf568 22 void clearScreen( void );
atomicLogic 0:80ce68cdf568 23
atomicLogic 0:80ce68cdf568 24 public:
atomicLogic 0:80ce68cdf568 25 Display();
atomicLogic 4:f056a09af806 26 void setBacklight( float lvl );
atomicLogic 0:80ce68cdf568 27 void setTime( int houres, int minutes, int seconds );
atomicLogic 0:80ce68cdf568 28 void setStatusBattery( float batteryLvl );
atomicLogic 0:80ce68cdf568 29 void setStatusGps( bool gpsFix );
atomicLogic 0:80ce68cdf568 30 void setStatusLora( bool lora, int loraStatus );
atomicLogic 0:80ce68cdf568 31
atomicLogic 4:f056a09af806 32 virtual void setStartScreen( void );
atomicLogic 4:f056a09af806 33 virtual void setMissionScreen( std::string description, int distance, int radius );
atomicLogic 4:f056a09af806 34 virtual void setMessageScreen( std::string description );
atomicLogic 4:f056a09af806 35 virtual void setEndScreen( void );
atomicLogic 4:f056a09af806 36 void topBar(bool topBar);
atomicLogic 0:80ce68cdf568 37 };
atomicLogic 4:f056a09af806 38