Adding more USBs, a fan, second trigger buttons, and hotkey to the Freeplay CM3
#2
I believe that you are on the right track here. As far as the code goes, then, I would suggest that you look at the GPIO controller driver code and just get an idea of how it works.

https://github.com/TheFlav/mk_arcade_joystick_rpi

There you can see the "mk_arcade_joystick_rpi.c" file and that the install.sh script adds this line into a "/etc/modprobe.d/mk_arcade_joystick.conf" file:
options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20

Maybe take a look at that and see if you can make sense of it.
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


Messages In This Thread
RE: Adding more USBs, a fan, second trigger buttons, and hotkey to the Freeplay CM3 - by Flavor - 01-30-2018, 01:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)