# Place in boot.py and then hard-reset your board
import board
import displayio
import fourwire
import supervisor

from adafruit_st7789 import ST7789

displayio.release_displays()

spi = board.SPI()
tft_cs = board.TX
tft_dc = board.RX

display_bus = fourwire.FourWire(
    spi, command=tft_dc, chip_select=tft_cs, reset=None
)

supervisor.runtime.display = ST7789(display_bus, width=240, height=240, rowstart=80)