项目作者: 32teeth

项目描述 :
ILI9342 SPI Driver
高级语言:
项目地址: git://github.com/32teeth/Generic-ILI9342.git
创建时间: 2018-09-18T11:58:15Z
项目社区:https://github.com/32teeth/Generic-ILI9342

开源协议:

下载


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

  1. cd ..
  2. sudo chmod +x fbcp-ili9342

Test the drive

  1. 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

  1. sudo nano /etc/rc.local

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

  1. sudo /home/pi/fbcp-ili9342 &
  2. exit 0

Save and reboot

Lakka

Because Arch

Lakka

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

  1. chmod +x fbcp-ili9342

Test the drive

  1. ./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

  1. nano /storage/.config/autostart.sh

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

  1. /storage/fbcp-ili9342 &

Save and reboot

Get In Touch

Find me on the internet and lets chat