Threading/Queues and Display Gif added

This commit is contained in:
2026-10-25 00:05:24 +02:00
parent 893dfd419e
commit 70f77133e6
11 changed files with 244 additions and 110 deletions
+9
View File
@@ -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