ready so far
This commit is contained in:
6
hmi.h
6
hmi.h
@ -32,13 +32,14 @@ namespace HmiNS {
|
||||
const static uint16_t WHITE = 0xFFFF;
|
||||
|
||||
const static uint8_t BUFFERLEN_MESSAGESLOT = 9;
|
||||
const static uint8_t NUM_OF_MESSAGESLOTS = 13;
|
||||
const static uint8_t NUM_OF_MESSAGESLOTS = 10;
|
||||
}
|
||||
|
||||
|
||||
struct MessageSlot {
|
||||
char header[HmiNS::BUFFERLEN_MESSAGESLOT+1];
|
||||
char body[HmiNS::BUFFERLEN_MESSAGESLOT+1];
|
||||
bool updateRequired;
|
||||
uint32_t timestamp;
|
||||
};
|
||||
|
||||
@ -48,14 +49,13 @@ public:
|
||||
void begin();
|
||||
void exec();
|
||||
Print *tft() { return &m_tft; };
|
||||
void updateMessage();
|
||||
void updateMessage(uint8_t slot, char* header, char* body);
|
||||
void toggleAlarmState(); // only for debug
|
||||
void clear();
|
||||
private:
|
||||
void drawMessages();
|
||||
Adafruit_ILI9341 m_tft;
|
||||
uint16_t m_displayIdentifier;
|
||||
bool m_messageDrawUpdateRequired;
|
||||
bool m_alarmMessageAvailable;
|
||||
MessageSlot m_messageSlots[HmiNS::NUM_OF_MESSAGESLOTS];
|
||||
};
|
||||
|
Reference in New Issue
Block a user