gc9a01py
gc9a01py copied to clipboard
M5Stamp (Esp32 Pico D4) blank screen.
Trying to run your lines codes on an esp32 Pico D4 from M5Stack (M5Stamp Ver) but just have a blank screen (backlight lit up) but not sure if I'm doing things correct. All I have changed to match my wiring is
`from m5stack import * import random from machine import Pin, SPI import gc9a01py as gc9a01
def main(): spi = SPI(2, baudrate=60000000, sck=Pin(18), mosi=Pin(26)) tft = gc9a01.GC9A01( spi, dc=Pin(21, Pin.OUT), cs=Pin(19, Pin.OUT), reset=Pin(22, Pin.OUT), backlight=Pin(25, Pin.OUT), rotation=0)`
All else is stock example.
I was able to use the same pins on an ESP-32-PICO after lowering the baud rate to 30000000.
I had to use a external 3.3v power supply since my USB to serial converter could not supply enough current at 3.3v to run both the PICO and the display.
Here is the setup code I used:
import random
from machine import Pin, SPI
import gc9a01py as gc9a01
def main():
spi = SPI(2, baudrate=30000000, sck=Pin(18), mosi=Pin(26))
tft = gc9a01.GC9A01(
spi,
dc=Pin(21, Pin.OUT),
cs=Pin(19, Pin.OUT),
reset=Pin(22, Pin.OUT),
backlight=Pin(25, Pin.OUT),
rotation=0)
Here is a picture of the wiring on the Display:
Here is a picture of the wiring on the PICO:
Russ
So the issue is power again. thanks for checking, I will try again this weekend. Thank you for testing.
Mine is connected like this (with the exception of that it now has additional 5v connected to the 5V in pins
But I'm still getting no response. here is a screen of my Thonny
Sorry I am really not understanding this setup at the moment
I have the waveshare version and it is working on an RPzero running circuit python.