Skip to content

32teeth/Generic-ILI9342

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ILI9342 Driver For Raspberry Pi

This is a precompiled driver for the ILI9342 driver on 2.3" and 2.6" TFT LCD

Pin Mapping

This is a 4 IO SPI pin mapping for Raspberry Pi 2/3/Zero

Function RPI PIN GPIO
RESET 22 GPIO25
CSX 24 CEO/GPIO8
SCL 23 SCLK/GPIO11
D/CX 18 GPIO24
SDI 19 MOSI/GPIO10

Notes: sometimes you will find that the above pins do NOT have corresponding pins on the TFT ribbon cable. This is due to different naming convenstion from different manufacturers

Here is a list of possible pin names and swaps

Function Possible Pin Name
RESET RESET, RST
CSX CS, CSX, CX
SCL RS, RSX, RX
D/CX DC, WR, WRX, WX
SDI SDI

Pick a system

Once you decide which OS you will be playing with the instructions are a little different

Grab the driver file and save it locally to you computer

RetroPie

Linux Distro

RetropPie

Drop the driver file into the /home/pi directory SSH into your Pi

cd ..
sudo chmod +x fbcp-ili9342

Test the drive

sudo ./fbcp-ili9342

If all has gone well and you have your display running. Let's make sure this happens automagically on start up by editing rc.local file

sudo nano /etc/rc.local

Add this above the exit 0 line, should look like below

sudo /home/pi/fbcp-ili9342 &

exit 0

Save and reboot

Lakka

Because Arch

Lakka

Drop the driver file into the /storage directory SSH into your Pi

chmod +x fbcp-ili9342

Test the drive

./fbcp-ili9342

If all has gone well and you have your display running. Let's make sure this happens automagically on start up by editing autostart.sh file

nano /storage/.config/autostart.sh

It will be an empy file. Simply add the line below

/storage/fbcp-ili9342 &

Save and reboot

Get In Touch

Find me on the internet and lets chat