Install the GamePi15 Driver At Yourself Image

From Waveshare Wiki
Jump to: navigation, search

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:
Display-configuration-tutorial-04.jpg
After changing:
Display-configuration-tutorial-03.jpg
(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:
Display-configuration-tutorial-05.jpg

sudo make -j

If all work well, you will get the following picture:
Display-configuration-tutorial-06.jpg

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

Display-configuration-tutorial-07.png
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 &

Display-configuration-tutorial-09.jpg

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

Joystick Configuration Tutorial01.jpg
Joystick Configuration Tutorial02.jpg
Joystick Configuration Tutorial03.jpg
Joystick Configuration Tutorial04.jpg
Joystick Configuration Tutorial05.jpg
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

Joystick Configuration Tutorial06.jpg
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.)
Audio Configuration Tutorial01.jpg
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'.
Audio Configuration Tutorial02.jpg
3. Then go to retropie menu.
Audio Configuration Tutorial03.jpg
Select -> AUDIO -> HEADPHONE.
Then reboot again uses:

sudo reboot

4. Set audio voice max after rebooting.
Press key START to enter retropie MAIN MENU.
Audio Configuration Tutorial04.jpg
Select SOUND SETTING -> SYSTEM VOLUME 100, AUDI0 DEVICE -> HEADPHONE, OMX PLAYER AUDIO DEVICE -> LOCAL.
Audio Configuration Tutorial05.jpg
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.

Game Full Screen Settings

Game Full Screen Settings 01.jpg
Game Full Screen Settings 02.jpg
Game Full Screen Settings 03.jpg
Game Full Screen Settings 05.jpg
Game Full Screen Settings 04.jpg
Reboot to save your configuration. Now enjoy !!