Configuring gpio inputs in retropie
-
Hi everyone. I have hit a bit of a standstill in my piboy build. I had this working once in the past, before the project was dropped and sat forgotten for nearly 2 years. I am now running the latest Retropie image.
I am using a Pi model B to build a piboy. It's a DMG-01 build. I once had my inputs working, but that sd card was repurposed during the time that the project was forgotten.
Where I'm at now is trying to configure the gpio inputs to be recognised by retropie. I am using the kitsch-bent common ground board for my buttons, wired directly to gpio pins on the pi board.
I think last time I used another piece of software to handle gpio inputs to reflect applicable keyboard inputs, then mapped the keyboard to suit. The problem I have now is that the pi has been... modified. All external connectors have been removed, with the exception of 1 usb port. I currently have no way to connect the Pi to the internet to enable me to install anything else, ssh in or browse the filesystem over the network. I might be able to get back to 2 usb ports, with a bit of dodgying up. This would enable me to install from a usb drive if that is possible.
Is there a solution to my problem, or am I going to have to disassemble the whole thing and add the network port back on?
Thanks in advance for your help.
-Ruffles
-
If you don't have a linux system on a PC, you could get one installed on a USB stick (a live distro) and read the SD card's contents from the PC, copying there the files you need, then using a keyboard on the PI to run the necessary installation steps.
I assume you want to install the GPIO drivers, which you can do manually using the files from https://www.niksula.hut.fi/~mhiienka/Rpi/ and following the installation instructions in the installation script (https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/gamecondriver.sh). It's a bit more convoluted and requires some Linux cli knowledge, but that would spare you to connect the Pi to the network.Of course, you can also get an USB hub and connect the Pi to the network with an USB Lan adapter while running commands with a USB keyboard, but you might not have that available.
EDIT: spelling.
-
@mitu hot damn that is really helpful! Thank you mate. I'll have a squiz at working that out tonight. You're a legend
-
@mitu thanks for the help, unfortunately this doesn't quite fit my purpose. This guide seems to be for hardwiring a controller, not for configuring individual gpio pins to represent a button. I wasn't able to get it to work for me.
I'm going to give the pigrrl setup a go, but that's going to require disassembling the system and soldering a network port back on. Appreciate the help though :)
-
The driver for individual buttons is mk_arcade_joystick either from the retropie script or you can download it from https://github.com/recalbox/mk_arcade_joystick_rpi
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.