from ST7735 import TFT from sysfont import sysfont from machine import SPI,Pin import time, math # ESP32 D1 R32 --- TFT: Pins SCK/orange SDA/gelb MISO frei spi = SPI(2, baudrate=20000000, polarity=0, phase=0, sck=Pin(14), mosi=Pin(13), miso=Pin(12)) # TFT RES, RS, CS # green violett grey tft=TFT(spi, 16, 17, 18) tft.initr() tft.rgb(True) tft.fill(TFT.BLACK) tft.rotation(1) # Pinleiste ist rechts tft.text((0, 0), " Young", TFT.WHITE, sysfont, 4) tft.text((20, 40), "Engineers", TFT.RED, sysfont, 2, nowrap=True) tft.text((2, 60), "mrge.de", TFT.YELLOW, sysfont, 3, nowrap=True) tft.text((0, 90), "Eilenburg 2022", TFT.GREEN, sysfont, 2, nowrap=True)