25 lines
560 B
C++
25 lines
560 B
C++
#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 |