mirror of
https://github.com/nacabaro/nacapet.git
synced 2026-01-27 16:05:32 +00:00
18 lines
629 B
C
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 |