Michel Dequick / DisplayDriver

Dependencies:   TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Display.h Source File

Display.h

00001 #pragma once
00002 #include "TextLCD.h"
00003 #include "CostumCharacters.h"
00004 #include "DisplayX.h"
00005 #include <string>
00006 
00007 class Display : public DisplayX
00008 {
00009 
00010 private:
00011     
00012     bool topBarEnable;
00013     
00014     int hours;
00015     int minutes;
00016     int seconds;
00017     int status;
00018     int distance;
00019     int radius;
00020     
00021     bool position;
00022     
00023     std::string description;
00024     
00025     PwmOut* backlight;
00026     std::string emptyRow;
00027     TextLCD * lcd;
00028     CostumCharacters * costumCharacters;
00029     void clearScreen( void );
00030 
00031 public:
00032     Display();
00033     void setBacklight( float lvl );
00034     void setTime( int hours, int minutes, int seconds );
00035     void topBarRedraw( void );
00036     void setStatusBattery( float batteryLvl );
00037     void setStatusGps( int gpsFix );
00038     void setStatusLora( int lora, int loraStatus );
00039     void setMenuScreen( void );
00040     
00041     virtual void setStartScreen( void );
00042     virtual void setMissionScreen( std::string description, int distance, int radius );
00043     virtual void setMessageScreen( std::string description );
00044     virtual void setEndScreen( void );
00045     void setStatusScreen( void );
00046     void topBar(bool topBar);
00047     
00048     void eventHandler( char key );
00049 };
00050