First Git Push
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef DISPLAYMANAGER_H
|
||||
#define DISPLAYMANAGER_H
|
||||
|
||||
#include <Adafruit_c.h>
|
||||
|
||||
class DisplayManager {
|
||||
public:
|
||||
// Pass the pins to the constructor
|
||||
DisplayManager(int8_t cs, int8_t dc, int8_t rst);
|
||||
|
||||
void begin();
|
||||
void update(); // For future animations (blinking eyes, etc.)
|
||||
|
||||
// Your Emotes logic merged here
|
||||
void drawCenteredText(const char* text, uint16_t color);
|
||||
void setEmote(uint8_t emoteId);
|
||||
void clear();
|
||||
|
||||
private:
|
||||
Adafruit_ST7789 _tft;
|
||||
// We store internal state here
|
||||
uint8_t _currentEmote = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user