Seeed-Studio / Seeed_Arduino_RoundDisplay

An Arduino graphics library based on LVGL, specifically designed for Round Display for XIAO
MIT License
24 stars 4 forks source link

Micropython support #7

Closed slabua closed 5 hours ago

slabua commented 2 weeks ago

Would it be possible to have official micropython support? Specifically, to use it with the RP version of the boards?

baorepo commented 1 week ago

https://github.com/russhughes/gc9a01_mpy @Cincinnatu Please port out product to this repo

slabua commented 1 week ago

I have checked this different version that seems to be working as well https://github.com/russhughes/gc9a01py

baorepo commented 1 week ago

could you help us test it? @slabua

slabua commented 1 week ago

@baorepo yes i will check it later tonight. I think I may have also found something for the touch panel, I'll check that too.

slabua commented 1 week ago

I've got the display working with: https://github.com/russhughes/gc9a01py

spi = SPI(0, baudrate=60000000, sck=Pin(2), mosi=Pin(3))
tft = gc9a01.GC9A01(
    spi,
    dc=Pin(29, Pin.OUT),
    cs=Pin(27, Pin.OUT),
    reset=Pin(26, Pin.OUT),
    backlight=Pin(0, Pin.OUT),
    rotation=0)

GbnTj7GbwAAPCpS

And the touch working with: https://github.com/bdbarnett/mpdisplay/blob/main/drivers/touch/chsc6x.py

i2c = I2C(1, sda=Pin(6), scl=Pin(7), freq=400000)
touch = CHSC6X(i2c, irq_pin=1)

GbnVH8-bAAAYeID

baorepo commented 1 week ago

@slabua Great. You did it. @limengdu @Chunchun-tian I recommend that you put this content on your product wiki to let more people know.