Install the GamePi15 Driver At Yourself Image
Display Configuration Tutorial
Official image version:
retropie-buster-4.7-xxxx.img
retropie-buster-4.8-xxxx.img
Board version: Raspberry Ri Zero/Zero 2/3B/4B/CM4
1. 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/
.)
2. Modify the st7735r.cpp
cd fbcp-ili9341 sudo mkdir build cd build sudo nano ../st7735r.cpp
To change like this following picture:
Change the ST7789 to ST7789VW, set LCD resolution to 240x240:
After changing:
(320-240=80)
3. 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 the following picture:
sudo make -j
If all work well, you will get the following picture:
4. 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=1 avoid_warnings=1
5. 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.
Joystick Configuration Tutorial
1. Install the driver on the terminal:
cd RetroPie-Setup/ sudo ./retropie_setup.sh
As the driver needs internet, you may install the driver unsuccessfully.
You need to try again or your internet has some problems which make your Pi can not connect to GitHub.
2. Modify the mk_arcade_joystick_rpi.conf file:
sudo nano /etc/modprobe.d/mk_arcade_joystick_rpi.conf
After you have installed the driver well. Add the following joystick configuration to this file.
#options mk_arcade_joystick_rpi map=1 options mk_arcade_joystick_rpi map=5 gpio=5,6,16,13,26,19,21,20,15,12,14,23
After rebooting remap your key, and then the Gamepad works.
Audio Configuration Tutorial
1. Download audremap18.dtbo to your pi and copy it to /boot/overlays/:
sudo cp audremap18.dtbo /boot/overlays/ sudo nano /boot/config.txt
2. Add this code:
dtoverlay=audremap18,pins_18_19
(audremap18.dtbo just enable gpio18 as pwm audio pin, This Above code will not enable gpio19 as pwm audio pin, gpio19 has configured as key START.)
Then use sudo reboot to restart the system.
2. After rebooting, you need to enable local audio.
sudo raspi-config
Select System Options -> Audio -> 'headphone'.
3. Then go to retropie menu.
Select -> AUDIO -> HEADPHONE.
Then reboot again uses:
sudo reboot
4. Set audio voice max after rebooting.
Press key START to enter retropie MAIN MENU.
Select SOUND SETTING -> SYSTEM VOLUME 100, AUDI0 DEVICE -> HEADPHONE, OMX PLAYER AUDIO DEVICE -> LOCAL.
5. Go back and press key B, then enter SOUND SETTING -> SYSTEM VOLUME again.
You will see it is 97 or 77, and you need to set it to 100 again.
After all settings, the VOLUME will become OK.