07-27-2020, 01:05 AM
okay so I figured it out I STFP the root file and deleted the old /home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak
then I
cd /home/pi/Freeplay
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
cd /home/pi/Freeplay/mk_arcade_joystick_rpi
./install.sh
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
selected
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
#this next line is for use with 2 PSP1000 analog sticks
options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 x1params=1176,2868,16,300 y1params=689,2336,16,300 x2params=572,3154,16,300 y2params=354,1762,16,300 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,35,36,-1,-1
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
##### Options below this line are for v0.1.5.10+ of the driver. Options above this may not function.
#U,D,L,R BTN_START, BTN_SELECT, BTN_A, BTN_B, BTN_TR, BTN_Y, BTN_X, BTN_TL, BTN_MODE, BTN_TL2, BTN_TR2, BTN_C, BTN_Z, BTN_TOP, BTN_TOP2, BTN_BASE, BTN_BASE2
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
ls /usr/src/
results "linux-headers-4.19.66+ linux-headers-4.19.66-v7+ mk_arcade_joystick_rpi-0.1.6.2 xpad-0.4"
followed by
sudo shutdown -h now
restarted the freeplay and configured my Gpio controller
all of my buttons work except the my Right analog stick left input, I checked it seem that my R2 trigger button is connected to the right analog stick left input
then I
cd /home/pi/Freeplay
git clone https://github.com/TheFlav/mk_arcade_joystick_rpi.git
cd /home/pi/Freeplay/mk_arcade_joystick_rpi
./install.sh
sudo nano /etc/modprobe.d/mk_arcade_joystick.conf
selected
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
#this next line is for use with 2 PSP1000 analog sticks
options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 x1params=1176,2868,16,300 y1params=689,2336,16,300 x2params=572,3154,16,300 y2params=354,1762,16,300 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,35,36,-1,-1
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1 hkmode=2
#this next line is for use with 4 extra buttons (maybe L2,R2,C,Z)
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2
#this next line is for use with a single PSP1000 analog stick
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
#this next line is for use with 2 PSP1000 analog sticks
#options mk_arcade_joystick_rpi map=4 hkmode=2 i2cbus=1 x1addr=72 y1addr=77 x2addr=75 y2addr=79 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,-1,41
##### Options below this line are for v0.1.5.10+ of the driver. Options above this may not function.
#U,D,L,R BTN_START, BTN_SELECT, BTN_A, BTN_B, BTN_TR, BTN_Y, BTN_X, BTN_TL, BTN_MODE, BTN_TL2, BTN_TR2, BTN_C, BTN_Z, BTN_TOP, BTN_TOP2, BTN_BASE, BTN_BASE2
#options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
ls /usr/src/
results "linux-headers-4.19.66+ linux-headers-4.19.66-v7+ mk_arcade_joystick_rpi-0.1.6.2 xpad-0.4"
followed by
sudo shutdown -h now
restarted the freeplay and configured my Gpio controller
all of my buttons work except the my Right analog stick left input, I checked it seem that my R2 trigger button is connected to the right analog stick left input
Words to live by: Make the world better than how we found it