russhughes / gc9a01py

GC9A01 Display driver in MicroPython
Other
39 stars 19 forks source link

M5Stamp (Esp32 Pico D4) blank screen. #1

Open Ajb2k3 opened 2 years ago

Ajb2k3 commented 2 years ago

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.

russhughes commented 2 years ago

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:

display

Here is a picture of the wiring on the PICO: pico

Russ

Ajb2k3 commented 2 years ago

So the issue is power again. thanks for checking, I will try again this weekend. Thank you for testing.

Ajb2k3 commented 2 years ago

Mine is connected like this (with the exception of that it now has additional 5v connected to the 5V in pins

260857247_10228288616626881_5011234386036909280_n

But I'm still getting no response. here is a screen of my Thonny Screenshot 2021-11-26 at 20 55 21

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.