nacapet/src/display/display.h
Nacho e138334e06 Na, poca cosa
- Soporte para varios bichos  a la vez
- Algunos bugs menos
2025-06-01 01:54:36 +02:00

18 lines
629 B
C

#ifndef DISPLAY_H
#define DISPLAY_H
#include <TFT_eSPI.h>
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