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.

PythonKid
  • 39
  • 4
  • 1
    i dont think i broke anything - your description suggests otherwise – Jaromanda X Mar 20 '23 at 22:35
  • (1) Are you following any of the following tutorials? (a) https://bytesnbits.co.uk/raspberry-pi-pico-spi-lcd-display/ (b) https://www.instructables.com/Raspberry-Pi-Pico-CircuitPython-ILI9341/ (c) https://www.hackster.io/news/driving-an-ili9341-display-with-a-raspberry-pi-pico-8dd4ded042e1 – tlfong01 Mar 21 '23 at 03:26
  • 1
    you said that you hit it... that is definitely not almost touched it ... remove all components and wires from the breadboard ... build the circuit from the begining – jsotola Mar 21 '23 at 03:28
  • (2) Or are you using Pico Thonny MicroPython and used its "manage package" tool and installed the following 6 years old PyPi ILI9341 package? https://github.com/tuupola/micropython-ili934x – tlfong01 Mar 21 '23 at 04:00
  • (3) This ILI9341 library is good: AdaFruit ILI9341 CircuitPython Library - CircuitPython https://docs.circuitpython.org/projects/ili9341/en/latest/index.html. – tlfong01 Mar 21 '23 at 14:04
  • (4) ILI9341 LCD module white screen troubleshooting references: (a) ILI9341 LCD White after short - Asked 2 years ago Modified 2 years ago Viewed 122 times https://raspberrypi.stackexchange.com/questions/121505/white-ili9341-display-after-short

    (b) ILI9341 3.2 inch SPI Module ILI9341 SKU:MSP3218 Reference - : LcdWiki http://www.lcdwiki.com/3.2inch_SPI_Module_ILI9341_SKU:MSP3218

    – tlfong01 Mar 22 '23 at 03:47
  • The OP might like to confirm which ILI9341 LCD dsiplay model he has broken: (c) 3.2 inch SPI TFT LCD Screen - AliExpress https://www.aliexpress.com/w/wholesale-3.2-inch-spi-tft-lcd-screen.html – tlfong01 Mar 22 '23 at 03:56

1 Answers1

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


tlfong01
  • 4,665
  • 3
  • 10
  • 24