#ifndef DISPLAY_H #define DISPLAY_H #include const int SCREEN_WIDTH = 240; const int SCREEN_HEIGHT = 240; void tft_initDisplay(TFT_eSPI &tft, uint16_t color = TFT_WHITE); void tft_initScreenBuffer(uint16_t color = TFT_WHITE); void tft_drawBuffer(); void tft_clearBuffer(TFT_eSprite &buffer, uint16_t color = TFT_WHITE); void tft_clearBuffer(uint16_t color = TFT_WHITE); void tft_drawCenteredText(const char* text, int factor, int y); void tft_drawText(const char* text, int size, int x, int y, uint16_t color = TFT_BLACK); void tft_drawRectangle(int x, int y, int w, int h, uint16_t color = TFT_BLACK); #endif