#include <TFT_eSPI.h>
#include "adventpro_regular18pt.h"
TFT_eSPI tft = TFT_eSPI();
void setup() {
tft.init();
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);
// 1. Użycie loadFont z tablicą bajtów:
tft.loadFont(adventpro_regular18pt);
tft.setTextColor(TFT_WHITE, TFT_BLACK);
tft.setCursor(0, 0);
// 2. Test polskich znaków
tft.println("Cześć Kshyhoo!");
tft.println("Zażółć gęślą jaźń");
tft.println("ĄĆĘŁŃÓŚŻŹ°ąćęłńóśżź");
tft.unloadFont();
}
void loop() {
// nic
}