st7789_mpy
st7789_mpy copied to clipboard
TTGO T-WATCH-2020 v3 Support
Hello. Tremendous repo. (Most other blogs left me without working v3 so far, well done here!)
I noticed:
"""TTGO TWATCH-2020 V2 with ST7789 240x240 display""" in the tft_config.py so am wondering if there is v3 support coming.
For reference, I dabbled with some basic changes for the v3's IO pins/etc I found here:
https://www.aliexpress.us/item/3256802898629918.html
i.e After just changing the config function in tft_config.py as below (basically just the backlight) made the V3 work beautifully. I can see the example watch face.
def config(rotation=0, buffer_size=0, options=0):
axp = axp202c.PMU()
axp.enablePower(axp202c.AXP202_LDO2)
return st7789.ST7789(
SPI(1, baudrate=32000000, sck=Pin(18, Pin.OUT), mosi=Pin(19, Pin.OUT)),
240,
240,
cs=Pin(5, Pin.OUT),
dc=Pin(27, Pin.OUT),
backlight=Pin(15, Pin.OUT),
buffer_size=buffer_size)
I have not had too much time to delve deeper in terms of what is different on the V3, perhaps this will help others get started.
(FWIW, I tried lots of things/blogs before this firmwmare, this repo was the only one (w/ the above change) to actually get the V3 to work.
Thanks!