3

So i was in my chair and i clicked run script and when i got up i tripped and lightly hit my breadboard and then the screen (ili9341) went white. Before i hit it, it was working but not anymore. I tryed decconect the pico and put it back on then but it didn't work so i tryed re downloading (i only put it into boot mode then put the circuitpy file and didn't use the flash_nuke file) circuitpy and didn't work as well, wiring seems fine and i dont think i broke anything, i just almost touched it.

Note: Actually i fixed it. I think it was just a little connection problem. It does it often but i figured it all so it's good, thx for helping and the links in the reponse are helpfull so thx.

7

1 Answer 1

0

(A) How to use Rpi Pico W to repair a broken ILI9341 LCD display module? - Selecting the module for testing.

ili9341 1

ili9341 2


(B) Rpi Pico W SPI Wiring Notes

I am thinking of using PicoW's SPI #1 to connect to the ILI9341 LCD display module (GPIO 21~27).

SPI 1


(C) ILI9341 SPI Wiring for troubleshooting

ili9341 spi wiring


(D) PicoW SPI0 signal timing

spi 1

spi 3

spi 4

spi 5


PicoW ili9341_SPI testing_2023mar26hkt1516 v01 program listing


(E) PicoW SPI reading ILI9341 registers

spi test 1

spi test 2


(F) PicoW ILI9341 Wiring Diagram

(a) Connect an SPI LCD Display to Your Raspberry Pi Pico Using MicroPython ILI9341 Driver - Bob, bytesNbits 2021dec29

(b) ILI9341 TFT LCD Single Chip Driver 240 RGB x 320 datasheet v1.11 - ilitek

ili9341 wiring


(G) RPi Pico/MicroPython + ILI9341 SPI Display with Touch - Rdagger

(a) RPi Pico/MicroPython + ILI9341 SPI Display with Touch, using rdagger/micropython-ili9341 - Hello Rpi, 2021mar06

(b) rdagger/micropython-ili9341 (MicroPython ILI9341Display & XPT2046 Touch Screen Driver) - 2022sep03


(H) ILI9341 LCD Touch Screen Setup and Troubleshooting

ouch screen signal pin wiring

(a) RPi Pico/MicroPython + ILI9341 SPI Display with Touch, using rdagger/micropython-ili9341 - HelloRpi 2021mar06

(b) ILI9341 2.4inch SPI Module ILI9341 SKU:MSP2402 - LcdWiki

(c) ILI9341 2.4inch SPI Module ILI9341 SKU:MSP2402 User Manual - LcdWiki

Touch screen signal line wiring

10  T_CLK   Touch SPI bus clock signal
11  T_CS    Touch screen chip select signal, low level enable
12  T_DIN   Touch SPI bus input
13  T_DO    Touch SPI bus output
14  T_IRQ   Touch screen interrupt signal, low level when touch is detected

(I) So I repeated the OP's white screen

white screen 1


PicoW ILI9341 Wiring Scheme v0.1

ili9341 wiring 1


(J) ILI9341 White Screen Troubleshooting Suggestion

rgb565 colours


ILI9341 White Screen Troubleshooting

(a) framebuf - microphon.org

(b) newdigate / rgb565_colors colour name definitions - github

(c) Color Depth (65k, 262k, 16.7M Colors) - focusLeds

(d) Multi Thread Coding on the Raspberry Pi Pico in MicroPython - Threads, Locks and problems!

(e) getis/pi-pico-spi-lcd-ili9341-st7789 Public


framebuf — frame buffer manipulation - micropython.org
This module provides a general frame buffer which can be used to create bitmap images, which can then be sent to a display.

class FrameBuffer
The FrameBuffer class provides a pixel buffer which can be drawn upon with pixels, lines, rectangles, ellipses, polygons, text and even other FrameBuffers. It is useful when generating output for displays.

For example:

import framebuf

# FrameBuffer needs 2 bytes for every RGB565 pixel
fbuf = framebuf.FrameBuffer(bytearray(100 * 10 * 2), 100, 10, framebuf.RGB565)

fbuf.fill(0)
fbuf.text('MicroPython!', 0, 0, 0xffff)
fbuf.hline(0, 9, 96, 0xffff)

(K) XPT2046 Touch Screen Controller

xpt2046 summary

Touch screen signal line wiring

10  T_CLK   Touch SPI bus clock signal
11  T_CS    Touch screen chip select signal, low level enable
12  T_DIN   Touch SPI bus input
13  T_DO    Touch SPI bus output
14  T_IRQ   Touch screen interrupt signal, low level when touch is detected

XPT2046 Touch Screen Controller Datasheet - XPTek 2007may


rdagger/micropython-ili9341 /xpt2046.py (Serial interface for XPT2046 Touch Screen Controller) - Rdagger


rdagger xpt2046.py program listing


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.