• 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 C3 RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel ESP32 Development Board C3 1.28 inch Round Rotary LCD Smart Screen 1.28inch Knob Display 240x240 LVGL for Arduino Raspberry Pi Pico GNSS expansion board L76K GPS Beidou (BDS) GLONASS QZSS A-GNSS For RP2040/RP2350 Industrial USB TO 8CH TTL Converter USB to UART Multi Protection Circuits Multi Systems Raspberry Pi DSI Multi Protection Solar raw display ESP32-S3 Development Board 1.47 inch LCD Screen Display 172x320 SD-Port LVGL USB ESP32-S3 DeepSeek AI Box Robot Development Board N16R8 Toy Doll Option 0.71 inch Electronic Eyes Raspberry Pi Pico 2 RP2350-Matrix Development Board 8×8 RGB LED Matrix QMI8658 6-Axis Sensor Raspberry Pi 5 Official Original AI Kit Hailo8l 13Tops/26Tops PCIe M.2 HAT+ Board For Pi5 4.2 inch e-Paper Display G Red/Yellow/Black/White 4.2inch E-link Screen For Arduino /Raspberry Pi /Jetson Nano /STM32 Raspberry Pi 5 Sound Card ESP32-C5 WIFI6 Development Board ESP32-C5-WROOM-1 N16R4/N16R8 Digital Input ESP32 MLX90640 Raspberry Pi 5 PCIe to 4 Port 2.5G Gigabit Ethernet Adapter RJ45 Ports Raspberry Pi Pico HDMI