did someone manage to make work the display on the TTGo T-Display board?
It seems it is a ST7789V with 135 x 240 resolution. I tried example from https://github.com/devbis/st7789py_mpy changing the resolution and pins but i get no response whatsoever. Can please someone point me in the right direction?
Thanks
Code: Select all
import random
import machine
import st7789py as st7789
import time
def main():
spi = machine.SPI(1, baudrate=40000000, polarity=1)
display = st7789.ST7789(
spi, 135, 240,
reset=machine.Pin(23, machine.Pin.OUT),
dc=machine.Pin(16, machine.Pin.OUT),
)
display.init()
while True:
display.fill(
st7789.color565(
random.getrandbits(8),
random.getrandbits(8),
random.getrandbits(8),
),
)
# Pause 2 seconds.
time.sleep(2)