i test batocera 5.27.2 working copy code
How to set up Batocera on Waveshare gamepi43
steps to set up waveshare game hat for batocera
ssh root@batocera.local and use putty User: root
type in password “linux”
nano batocera.conf
#Control+W to search for “gpio”
#Change the follow lines
#———— D3 - GPIO Controllers ————#
##GPIO Controllers
##enable controllers on GPIO with mk_arcarde_joystick_rpi (0,1)
controllers.gpio.enabled=1
##mk_gpio arguments, map=1 for one controller, map=1,2 for 2 (map=1,map=1,2)
controllers.gpio.args=map=1
##Custom mk_gpio arguments,
##map=5 gpio1=Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk for one controller,
##map=5 gpio1=pin1,pin2,pin3,…..,pin12,pin13
##map=5,6 gpio1=Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk gpio2=Y-,Y+,X-,X+,start,select,a,b,tr,y,x,tl,hk for 2 (map=5,map=5,6)
##map=5,6 gpio1=gpiox,gpioy,gpioz,…..,gpiou,gpiov gpio2=gpiox,gpioy,gpioz,…..,gpiou,gpiov
#where gpiox,gpioy,gpioz … are NOT pin numbers on the connector, BUT location gpio numbered as in
#
##Set pin to -1 to disable it
#controllers.gpio.args=map=5,6 gpio=4,17,27,22,10,9,25,24,23,18,15,14,2 gpio2=11,5,6,13,19,26,21,20,16,12,7,8,3
##MCP configuration : GPIO and MCP can be used together. You can mix them.
##map=0×20,0×21 for 2 mcp23017 on i2c bus
#controllers.gpio.args=map=0×20,0×21,5,6 gpio=4,17,27,22,10,9,25,24,23,18,15,14,-1 gpio2=11,5,6,13,19,26,21,20,16,12,7,8,-1
#Control+X to exit and save the file.
type “reboot” to reboot the machine.
[note back # and ## specbar 1 Press]
dreamcast button L1 R1 not work
sega saturn button L1 R1 not work
Add lines to config.txt file
………………………………………………………
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 600 60 6 0 0 0
hdmi_drive=2
display_rotate=0
avoid_warnings=1