• sales

    +86-0755-88291180

Raspberry Pi gamepi154-Retropie-Display configuration tutorial

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

Board versionRaspberry 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 wellyou will get this following picture

sudo make -j
If all work wellyou 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: RoArm M2 4 DOF High Torque Serial Bus Servo ROS2 WIFI ESP NOW UART USB ST3235 QMI8658C For ESP32 Raspberry Pi 5 inch DSI Display MIPI LCD (C) Capacitive TouchScreen 1024x600 4.26inch-e-Paper DDSM315 Direct Drive Servo Motor All-In-One Design Hub RS485 Motor Raspberry Pi 5 X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also Raspberry-Pi-1.54inch-LCD-Display-Touchscreen-configuration-Bookworm-Lite For Pi5 ESP32-S3 1.28 DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 1.28 inch Round LCD 1.28inch TouchScreen N16R8 128x128 Magnetic Encoder Servo Motor 85KG.CM 12V/24V 360° RS485 High Precision And Large Torque X1300 X1300-A2 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also Jetson Nano IO Board Raspberry Pi 5 LIR2032 Jetson Nano Case Raspberry Pi 5 PCIe To M.2 E KEY NGFF WIFI7 WIFI6 For BE200/AX210/AX200/RTL8822CE ESP32 S3 Development Board 1.43 inch AMOLED Display 1.43inch TouchScreen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor Day and IR Night Vision ESP32 C3 1.44inch LCD Raspberry Pi AF Camera