I ordered a cheap 2.8 inch ILI9341 screen from Amazon (https://www.amazon.co.uk/240×320-Screen-Serial-Module-ILI9341/dp/B07MXH92RL/ref=sr_1_12?dchild=1&keywords=spi+screen&qid=1589230039&sr=8-12) in the hopes of using it in a custom handheld Retropie console. However, I have attempted many different methods, none of which seem to work. I have reason to believe that the screen is not faulty as, when I give power to the backlight, it lights up, so I think that this is a software issue. Does anybody know how I can configure it to work? Many thanks, Dominic.
-
Comments are not for extended discussion; this conversation has been moved to chat. – goldilocks♦ 8 hours ago
Question
The OP has the following LCD:
He is following the following guide to setup the LCD:
ili9341 Raspberry Pi guide – Pi0ket 2019feb26
He gets a white screen, and now a black screen. What is going on? How to fix it?
/ to continue, …
Answer
/ to continue, …
Discussion
The OP’s LCD uses the Nokia 5110 interface. So I google that to refresh my memory.
And I checked out the OP’s LCD to make sure if the pin outs match. It appears that the OP’s LCD 14 pin connector has the 5110’s 8 pin subset. The 14 pin has reserved 6 pin to touch panel, but is not uses. Everything looks good so far.
And the schematic
/ to continue, …
References
(2) Amazon Ftvogue ILI9341 2.8″ 240×320 SPI TFT LCD Screen Docs and Schematic
(3) ili9341 Raspberry Pi guide – Pi0ket 2019feb26
(4) Artillery SPI TFT XPT2046 3.2 inch LCD touch screen monitor Module for Raspberry Pi3B/B+
(5) TSC2046 XPT2046 TOUCH SCREEN ILI9341 2,008 views 2017oct01
(6) LCD TFT screen 2.8″ ILI9341 SPI connect (How to build kernel/driver)
(8) ILI9341 Touch LCD SPI Based Driver for Rpi3B+ stretch – juj 2019apr19
(9) Rpi ILI9341 / XPT2046 SPI 3.2″ Touch LCD Display – LCwiki
(10) How to install LCD driver
(11) Getting an ILI9341 SPI screen working on Rpi – MGD Blog 2014feb19
(12) notro/fbtft Drivers for small TFT LCD display modules
(13) notro/fbtft Framebuffer use
(14) notro/fbtft Wiki
(15) notro/rpi-firmware branch:builtin
/ to continue, …
Appendices
Appendix A – SPI Setup
Appendix B – LCD Pin out
Appendix C – Back Lit Test
Appendix D – Testing MGD Blog notro/fbtft Setup
(11) Getting an ILI9341 SPI screen working on Rpi – MGD Blog 2014feb19 (12) notro/fbtft Drivers for small TFT LCD display modules (13) notro/fbtft Framebuffer use (14) notro/fbtft Wiki (15) notro/rpi-firmware branch:builtin
Steps
(2) Compiled a custom kernel to load module.
(4) Wiring module to Rpi
Notes: (a) Used AdaFruit’s wiring scheme: https://github.com/notro/fbtft/wiki/LCD-Modules#adafruit-22 (b) AdaFruit’s 2.2″ 18-bit color TFT LCD display with microSD card breakout PRODUCT ID: 1480 US$25 https://www.adafruit.com/product/1480 (c) MISO, SDCS are not used by the module
---------------------------------------------
Display Driver Rpi Remark
GPIO Pin
Name
---------------------------------------------
BL led GPIO18 Back Lit
SCK SCLK
MISO * Used by SD-card (Not used in this setup)
MOSI MOSI
CS CE0 Chip Select
SDCS * SD-card Chip Select (Not used in this setup)
RST reset GPIO25
D/C dc GPIO24 Data/Control
VIN 3V3
GND GND
---------------------------------------------
(6) Load module
sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:25,dc:24,led:18 speed=16000000 rotate=90 bgr=1
Notes: (a) rotat=90 -> landscape, (b) bgr=1 -> correct background colour
(7) Send console to frame buffer 1
con2fbmap 1 1
Notes: (a) If using X:
FRAMEBUFFER=/dev/fb1 startx
(8) To load module automatically at boot, add the following line to /etc/modules:
fbtft_device custom name=fb_ili9341 gpios=reset:25,dc:24,led:18 speed=16000000 rotate=90 bgr=1
(9) To use built-in version, add this to the kernel command line:
fbtft_device.name=fb_ili9341 fbtft_device.gpios=reset:25,dc:24,led:18 fbtft_device.speed=16000000 fbtft_device.rotate=90 fbtft_device.bgr=1 fbtft_device.custom=1
/ to continue, …
End of Answer
Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.







Categories: Uncategorized