Gpio Pins input on Raspberry Pi 3, in Usb Keyboard Input
-
Hello
I want to build an Arcadeconsole for a Schoolprojekt.
But my Problem is, i have no idea how to make Pin Inputs in Usb inputs, without using an controller ore somethink.
is there a script ore somethink i can use?thanks fore helping
-
@MrMasterGenius You might have done a little more reading in the WIKI, as there is a section on GPIO inputs:
https://retropie.org.uk/docs/GPIO-Modules/
Not sure if that is what you mean by "Pin Inputs in Usb inputs" as using GPIO does not require USB.
Also, Adafruit put together a software configuration they called Retrogame for triggering keys via GPIO that some folks use:
https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-software
Finally, I quite like mholgatem's GPIOneer utility. It basically does the same thing as Retrogame, but it has a web interface which is really nice and you can put in entire commands. I use it to trigger volume up and volume down commands using dedicated buttons and it works great!
https://github.com/mholgatem/gpioneer
GPIOneer does have an odd shutdown script issue on the Pi3, but there is a workaround described in the Issues section of the github repo.
I am sure there are other python scripts that could be written to do the same thing. You do have some limitations with the number of GPIO pins avaialble (you won't be making a 4-player arcade cabinet with this technique) but for smaller setups it may be all you need.
-
You might also want to look into getting a usb encoder like this one:
http://a.co/ejZbkRbJust wire up your buttons to the board and plug it into one of the usb ports. comes with all the wires even. for $12 it will save you a whole mess of headaches.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.