9 Jan 2019, 16:42

I made a recalbox using Raspberry Pi 3B and waveshare game hat.

See this youtube video

https://www.youtube.com/watch?v=ijM91OzCvNI&t=3s

Figured out how to map the GPIO pins on the waveshare game hatRecalbox on waveshare game hat

Download the Recalbox 2018 12 24 Xmas beta boot image for Respberry Pi 3B+
https://forum.recalbox.com/topic/1501...

Recalbox config Parameters to adjust to make the Game Hat GPIO work:

mount -o remount, rw /
cd ~
vi recalbox.conf

then change the following

system.power.switch=PIN56PUSH

controllers.gpio.enabled=1
controllers.gpio.arg=map=4 gpio=5,6,13,19,21,4,26,12,23,20,16,18,-1
kodi.enabled=1
kodi.atstartup=0
kodi.xbutton=1
wifi.enabled=1
wifi.ssid=yuourssid
wifi.key=yourpassword

The boot up script file of the recalbox 2018 Xmas beta (/recalbox/scripts/recalbox-config.sh) cannot take in the second parameter I put into the recalbox.conf file.
Until this is fixed in a later release, we need to change the following lines to fix this issue so the custom GPIO button pin mapping can take effect.

mount -o remount, rw /

vi /recalbox/scripts/recalbox-config.sh

While in Vi Search for the line with extra2=“$4” using the command /extra2=“ , then press ENTER and a to add a line after it.

extra3=“$5”

Then Search for the line with map="$extra2” using the command /map=“
Then change it to
map="$extra2 $extra3”

After that, reboot the recall box to take effect of the changes by typing

shutdown –r now