russhughes / gc9a01_mpy

Fast MicroPython driver for GC9A01 display modules written in C
Other
153 stars 31 forks source link

Support for muliple GC9A01 display #28

Closed shrynikjain closed 9 months ago

shrynikjain commented 11 months ago

GC9A01 display(round display): Its not supoorting for multiple display. We are using esp32. Code format: spi =SPI(1, baudrate=60000000, sck=Pin(11), mosi=Pin(12))
for first display tft = gc9a01.GC9A01(spi,240,240,reset=Pin(9, Pin.OUT),cs=Pin(3, Pin.OUT),dc=Pin(46, Pin.OUT)backlight=Pin(5, Pin.OUT),rotation=2) tft.init() for second display tft1 = gc9a01.GC9A01(spi,240,240,reset=Pin(9, Pin.OUT),cs=Pin(10, Pin.OUT),dc=Pin(46, Pin.OUT)backlight=Pin(5, Pin.OUT),rotation=2) tft1.init() after doing this process only second dispaly is turning on. Is there any method to use more than one display.

russhughes commented 11 months ago

I have run two displays using a Raspberry Pi Pico. I have not tried using an ESP32 but it should work. I'll look into it.

https://github.com/russhughes/gc9a01_mpy/issues/11#issuecomment-1435768624