#include "Adafruit_ILI9341.h"
// alle Schriftarten einbinden
#include "Fonts/FreeMono9pt7b.h"
#include "Fonts/FreeMono12pt7b.h"
#include "Fonts/FreeMono18pt7b.h"
#include "Fonts/FreeMono24pt7b.h"
#include "Fonts/FreeMonoBold9pt7b.h"
#include "Fonts/FreeMonoBold12pt7b.h"
#include "Fonts/FreeMonoBold18pt7b.h"
#include "Fonts/FreeMonoBold24pt7b.h"
#include "Fonts/FreeMonoBoldOblique9pt7b.h"
#include "Fonts/FreeMonoBoldOblique12pt7b.h"
#include "Fonts/FreeMonoBoldOblique18pt7b.h"
#include "Fonts/FreeMonoBoldOblique24pt7b.h"
#include "Fonts/FreeMonoOblique9pt7b.h"
#include "Fonts/FreeMonoOblique12pt7b.h"
#include "Fonts/FreeMonoOblique18pt7b.h"
#include "Fonts/FreeMonoOblique24pt7b.h"
#include "Fonts/FreeSans9pt7b.h"
#include "Fonts/FreeSans12pt7b.h"
#include "Fonts/FreeSans18pt7b.h"
#include "Fonts/FreeSans24pt7b.h"
#include "Fonts/FreeSansBold9pt7b.h"
#include "Fonts/FreeSansBold12pt7b.h"
#include "Fonts/FreeSansBold18pt7b.h"
#include "Fonts/FreeSansBold24pt7b.h"
#include "Fonts/FreeSerif9pt7b.h"
#include "Fonts/FreeSerif12pt7b.h"
#include "Fonts/FreeSerif18pt7b.h"
#include "Fonts/FreeSerif24pt7b.h"
#include "Fonts/FreeSerifBold9pt7b.h"
#include "Fonts/FreeSerifBold12pt7b.h"
#include "Fonts/FreeSerifBold18pt7b.h"
#include "Fonts/FreeSerifBold24pt7b.h"
// ESP32-WROOM
#define TFT_CS 5
#define TFT_RST 4
#define TFT_DC 2
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
// Farben
#define SCHWARZ 0x0000
#define WEISS 0xFFFF
#define BLAU 0x001F
#define ROT 0xF800
#define GRUEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define GELB 0xFFE0
#define BRAUN 0x9A60
#define GRAU 0x7BEF
#define GRUENGELB 0xB7E0
#define DUNKELCYAN 0x03EF
#define ORANGE 0xFDA0
#define PINK 0xFE19
#define BORDEAUX 0xA000
#define HELLBLAU 0x867D
#define VIOLETT 0x915C
#define SILBER 0xC618
#define GOLD 0xFEA0
void setup()
{
tft.begin();
tft.fillScreen(SCHWARZ);
tft.setTextColor(WEISS);
tft.setFont(&FreeSerif24pt7b);
tft.setCursor(1, 40);
tft.print("Serif 24pt");
tft.setTextColor(BORDEAUX);
tft.setFont(&FreeSans24pt7b);
tft.setCursor(1, 100);
tft.print("Sans 24pt");
tft.setTextColor(PINK);
tft.setFont(&FreeSerif18pt7b);
tft.setCursor(1, 140);
tft.print("Serif 18pt");
tft.setTextColor(GRUEN);
tft.setFont(&FreeSans18pt7b);
tft.setCursor(1, 180);
tft.print("Sans 18pt");
tft.setTextColor(MAGENTA);
tft.setFont(&FreeSerif12pt7b);
tft.setCursor(1, 210);
tft.print("Serif 12pt");
tft.setTextColor(ROT);
tft.setFont(&FreeSans12pt7b);
tft.setCursor(1, 240);
tft.print("Sans 12pt");
tft.setTextColor(ORANGE);
tft.setFont(&FreeSerif9pt7b);
tft.setCursor(1, 270);
tft.print("Serif 9pt");
tft.setTextColor(GELB);
tft.setFont(&FreeSans9pt7b);
tft.setCursor(1, 300);
tft.print("Sans 9pt");
}
void loop()
{
// bleibt leer, Programm läuft nur einmal
}