raspberry pi pico not powering up spi tft display

April 2, 2024, 14:56

misterjthegamer

dosnt work or turn on when i connect my pico to power. also vs code dosnt detect my library

misterjthegamer

im completely new to raspberry technology

misterjthegamer


import machine
import st7789


spi = machine.SPI(0, baudrate=24000000, sck=machine.Pin(18), mosi=machine.Pin(19))


display = st7789.ST7789(spi, 240, 240, reset=machine.Pin(20), dc=machine.Pin(16))


display.fill(st7789.color565(255, 0, 0))


display.text("Hello, World!", 60, 120, st7789.WHITE)


display.show()

misterjthegamer

code.

misterjthegamer

dosnt import st7789

misterjthegamer

ImportError: no module named 'st7789'

misterjthegamer

pip installed it didnt do anything.

thunder07337

Are you sure you have connected the display correctly? There are 2 cables leading from the display to the + Is that really how it should be?

misterjthegamer

?

misterjthegamer

2 cables to the power yeah.

misterjthegamer

both the vcc and the led need 3.3 volts

misterjthegamer

i did ask the chat gpt person to make me an example code as i just wanna know that its working

misterjthegamer

because i want to sandpaper the sd card part

thunder07337

SD card? Do you have a link to the display?

misterjthegamer

link?

misterjthegamer


misterjthegamer

I want to trim this a bit

misterjthegamer

but still the screen dosnt work either way

thunder07337

Product description Link? I don't know exactly what kind of display you're using...

misterjthegamer

tft spi

thunder07337

And now you want me to look for what you bought?

thunder07337


misterjthegamer

of course not sir.

misterjthegamer

i bought this.

misterjthegamer

no touch

oops.se

Please read https://discord.com/channels/818384379197784084/1189386838788542464 as it is now the code is unreadable

misterjthegamer

idk how to bold

misterjthegamer

<@796000224690307072> did i do it right?

oops.se

Kind of, there is a lot of blank lines, but the formatting is perfect. Thx

oops.se

Mark the text and press "Ctrl + B" for bold

misterjthegamer

ah

misterjthegamer

thank u

misterjthegamer

anyways i need help with this.

misterjthegamer

if anyone can help

oops.se

1. The link to what you bought look like a display with a driver chip ILI9341 or ILI9488, so why are you using st7789? 2. The picture of the wiring is just a rats nest for me... A drawing is better. 3. What IDE are you using for programming? 4. I would advice you to search for a tutorial how to get starting. 5. A second advice start with something simpler than the display as your first project.

oops.se

misterjthegamer

using a pico W

misterjthegamer

i already got everything set up on the pico

misterjthegamer

its using a different driver chip?

misterjthegamer

damn.

misterjthegamer

wiring:

misterjthegamer


misterjthegamer

vcc is connected to 3.3V

oops.se

Well It could be as you haven't stated which display you have?

oops.se

Check the specification

oops.se

And I stand by my advice.

misterjthegamer

.

misterjthegamer


oops.se

There you have the ddriver IC

misterjthegamer

Ill try to use that driver but.

misterjthegamer

My problem is that the screen dosnt even turn on

misterjthegamer

Im pretty sure when these types of screens get power they immediately power on

misterjthegamer

Showing a white screen

misterjthegamer

Talked to the seller..

misterjthegamer


misterjthegamer

Told me arduino only.

misterjthegamer

My biggest problem right now is that i bought this screen to connect a micro hdmi to it

misterjthegamer

Or mini hdmi

misterjthegamer

So i can use it on the zero.

misterjthegamer

Raspberry pi zero

oops.se

That display has a SPI interface and that is a generic interface that can be used with any computer/micro controller. Arduino, Pico, STM32, PC. https://en.wikipedia.org/wiki/Serial_Peripheral_Interface There are drivers/libraries for Arduino C, different flavours of Python and probably other languages as well. So the seller doesn't know what they are talking about. And HDMI ? Then your in for a hard ride.

misterjthegamer

Ah thanks. I bought a screen specifically for the raspberry zero because of that..

misterjthegamer

Bc he told me that

misterjthegamer

But if we get this to work then ill probably refund it

misterjthegamer

But the thing is that it just dosnt work regardless

misterjthegamer

Seems tho im not getting any help but. Ill wait.