April 2, 2024, 14:56
import machine import st7789 spi = machine.SPI(0, baudrate=24000000, sck=machine.Pin(18), mosi=machine.Pin(19)) display = st7789.ST7789(spi, 240, 240, reset=machine.Pin(20), dc=machine.Pin(16)) display.fill(st7789.color565(255, 0, 0)) display.text("Hello, World!", 60, 120, st7789.WHITE) display.show()