#include <Adafruit_GFX.h>
#include "Adafruit_ILI9341.h"
#include "beanstalk15.h"
#include "utf8_fix.h"
#define TFT_MOSI 11 // GPIO11
#define TFT_SCLK 12 // GPIO12
#define TFT_MISO 13 // GPIO13
#define TFT_DC 2 // GPIO2
#define TFT_RST 4 // reset TFT
#define TFT_CS 5 // CS wyświetlacza
#define TFT_WHITE 0xFFFF
#define TFT_BLACK 0x0000
//Adafruit_ILI9341 tft(TFT_CS, TFT_DC, TFT_RST);
GFX_UTF8 tft(TFT_CS, TFT_DC, TFT_RST);
void setup(void) {
Serial.begin(115200);
Serial.println("Hello! Test UTF8");
tft.begin();
tft.fillScreen(TFT_BLACK);
tft.setFont(&beanstalk15);
Serial.println("Initialized");
tft.setRotation(0);
tft.setTextWrap(true);
tft.setCursor(0, 50);
tft.setTextColor(TFT_WHITE);
tft.println("-ĄĆĘŁŃÓŚŻŹ-ąćęłńóśżź-");
tft.println("-ACELNOSZZ-acelnoszz-");
//tft.display();
}
void loop() {
delay(500);
}