added new function to have text automaticly at the bottom

This commit is contained in:
Sam
2024-03-07 13:03:58 +01:00
parent 2c0b7df0a1
commit f2964ebce8
2 changed files with 15 additions and 3 deletions

View File

@@ -8,10 +8,11 @@ class DisplayText {
private:
Adafruit_ST7796S_kbv& tft;
int centerText(char* text);
int bottomText(char* text);
public:
DisplayText(Adafruit_ST7796S_kbv& tftDisplay);
void writeText(char* text, int size, int posX, int posY, int screenTime, bool center);
void writeText(char* text, int size, int posX, int posY, int screenTime, bool center, bool bottom);
};
#endif