Threading/Queues and Display Gif added
This commit is contained in:
@@ -9,6 +9,11 @@ enum DisplayState {
|
||||
STATE_MENU
|
||||
};
|
||||
|
||||
struct DisplayMessage {
|
||||
char text[64];
|
||||
uint16_t color;
|
||||
};
|
||||
|
||||
class DisplayManager {
|
||||
public:
|
||||
DisplayManager(int8_t cs, int8_t dc, int8_t rst);
|
||||
@@ -29,6 +34,10 @@ private:
|
||||
Adafruit_ST7789 _tft;
|
||||
DisplayState _currentState = STATE_FACE;
|
||||
unsigned long _lastScreenUpdate = 0;
|
||||
unsigned long _textShownAt = 0;
|
||||
bool _showingText = false;
|
||||
uint8_t _animationFrame = 0;
|
||||
char _lastText[64] = {};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user