Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTGO T-WATCH-2020 v3 Support #112

Open
jouellnyc opened this issue Dec 27, 2022 · 0 comments
Open

TTGO T-WATCH-2020 v3 Support #112

jouellnyc opened this issue Dec 27, 2022 · 0 comments

Comments

@jouellnyc
Copy link

jouellnyc commented Dec 27, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant