• sales

    +86-0755-88291180

Raspberry Pi gamepi154-Retropie-Display configuration tutorial

Official image version:
retropie-buster-4.7-xxxx.img

Board version:Raspberry Ri Zero/Zero 2/3B/4B/CM4

Download fbcp-ili9341 to your pi
git clone https://github.com/juj/fbcp-ili9341.git 
(Make sure that you download fbcp-ili9341 under path /home/pi/)

cd fbcp-ili9341

sudo mkdir build

cd build
sudo nano ../st7735r.cpp
To change like this following picture
change madctl to 0xc0 (This is rotate 90 degree the LCD)

After changing


Set LCD resolution to 240x240

After changing


Then you need to compile this project
sudo cmake -DWAVESHARE_ST7789VW_HAT=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=27 -DSPI_BUS_CLOCK_DIVISOR=6 -DSTATISTICS=number ..
If all work well,you will get this following picture

sudo make -j
If all work well,you will get this following picture

If you can not compile successfully , You can download our changed project form here
fbcp-ili9341-st7789-rotate90_211209.tar.gz
Run the display driver using :
sudo ./fbcp-ili9341
Then your LCD will display well, but the Fontsize is too small
Change the LCD display resolution

sudo nano /boot/config.txt

Add the following code

hdmi_force_hotplug=1

hdmi_group=2

hdmi_mode=1

hdmi_mode=87

hdmi_cvt 480 480 60 6 0 0 0

display_rotate=0

avoid_warnings=1


Make fbcp-ili9341 work automatically when your Pi boot

sudo nano /etc/rc.local
Add the following code
sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 &


sudo reboot 
After your Pi reboot,Your LCD will display well

TAG: ESP32 MLX90640 8.8inch LCD 1920x480 Computer PC Monitor Display Secondary Screen TypeC USB CPU RAM 1.54 inch Passive NFC e-Paper ink (G) RYBW Display Screen No Need Battery Wireless Power & Data Transfer MPS2.5G Raspberry Pi 5 PCIe to NVME SSD And 2.5G Ethernet RJ45 HAT RTL8125 2280 2242 2230 USB Camera 12MP IMX563 USB 2.0 Dual-Axis OIS Autofocus Raspberry Pi Handheld Linux Terminal 3.5inch TouchScreen 640x480 Portable Development 4 inch e Paper HAT+ E Ink Spectra E6 Full-Color 600x400 Screen Display For Arduino /Raspberry Pi /Jetson Nano /STM32 Raspberry Pi 4B/5 Industrial UART 2CH RS485 RS232 CAN FD HAT With Case For Installation of guide rails and hanging 3key Keyboard Raspberry Pi Pico GNSS expansion board L76K GPS Beidou (BDS) GLONASS QZSS A-GNSS For RP2040/RP2350 Luckfox Pico Tutorial Jetson Orin Case Raspberry Pi CM5 Gigabit/2.5G Dual Ethernet Expansion Board with RJ45 GPIO IO Base Spotpear Raspberry Pi 1.3inch LCD Image extraction User Guide Mechanical Keyboard 1.38MP Global Shutter Camera ISG1321 For Luckfox Pico Zero Raspberry-Pi-Pico-W-webserver Raspberry Pi