message displaying works
This commit is contained in:
9
hmi.h
9
hmi.h
@ -31,14 +31,14 @@ namespace HmiNS {
|
||||
const static uint16_t YELLOW = 0xFFE0;
|
||||
const static uint16_t WHITE = 0xFFFF;
|
||||
|
||||
const static uint8_t BUFFERLEN_MESSAGESLOT = 10;
|
||||
const static uint8_t NUM_OF_MESSAGESLOTS = 12;
|
||||
const static uint8_t BUFFERLEN_MESSAGESLOT = 9;
|
||||
const static uint8_t NUM_OF_MESSAGESLOTS = 13;
|
||||
}
|
||||
|
||||
|
||||
struct MessageSlot {
|
||||
char header[HmiNS::BUFFERLEN_MESSAGESLOT];
|
||||
char body[HmiNS::BUFFERLEN_MESSAGESLOT];
|
||||
char header[HmiNS::BUFFERLEN_MESSAGESLOT+1];
|
||||
char body[HmiNS::BUFFERLEN_MESSAGESLOT+1];
|
||||
uint32_t timestamp;
|
||||
};
|
||||
|
||||
@ -48,6 +48,7 @@ public:
|
||||
void begin();
|
||||
void exec();
|
||||
void updateMessage();
|
||||
void updateMessage(uint8_t slot, char* header, char* body);
|
||||
void toggleAlarmState(); // only for debug
|
||||
private:
|
||||
void drawMessages();
|
||||
|
Reference in New Issue
Block a user