How to update the Freeplay from Compute module 3 to Compute module 3+
#11
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
Words to live by: Make the world better than how we found it
Reply
#12
(07-27-2020, 12:23 AM)faresdelvalle Wrote: good morning hope all is well, so when i do the command I'm denied permission

(07-27-2020, 12:23 AM)faresdelvalle Wrote: pi@retropie:~/Freeplay/mk_arcade_joystick_rpi $ mv /etc/modprobe.d/mk_arcade_joystick.conf /home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak
mv: cannot move '/etc/modprobe.d/mk_arcade_joystick.conf' to '/home/pi/Freeplay/mk_arcade_joystick_rpi/mk_arcade_joystick.conf.bak': PERMISSION DENIED

I'm sorry. I have now edited that command. It should have shown "sudo" in front of the command, so that it would 'do' the commend with super-user (aka 'su') permissions. = 'sudo'
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#13
(07-27-2020, 01:05 AM)faresdelvalle Wrote: 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

I don't know if I quite understand what you mean. It sounds like you mean that the left analog stick is fully working and the up/down on the right stick is working. The left/right isn't working? I would assume that may be a wiring problem. I don't really know what the R2 part of it means.
Card Fighters' Clash 2 English Translation ( http://cfc2english.blogspot.com/ )
Neo Geo Pocket Flash Cart and Linker Project ( http://www.flashmasta.com/ )
Avatar art thanks to Trev-Mun ( http://trevmun.deviantart.com/ )
Reply
#14
Sorry for not getting back I was working a ton. So I figured out that the issue was the psp 1000 analog joysticks which I'm having them replaced once my new ones arrive.

however, I reset my GPIO controller by accident when I was trying to swap A/B Buttons in ES
retropie setup
configuration/tools
812 emulation station frontend used by RetroPie
clear/Rest emulation station input configuration

and now my GPIO control setup won't save meaning every time i boot up I have to reconfigure my controller how do I fix this issue.
Words to live by: Make the world better than how we found it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)