Thanks for making the new version where the only thing we have to change is the retrogame.cfg file. That makes it a lot easier to set up and such.
However, I still can't get it to work. I have a RPi3vB running RetroPie, and I followed the instructions on the Adafruit tutorial exactly, as far as I can tell.
Here is my retropie.cfg:
# Sample configuration file for retrogame.# Really minimal syntax, typically two elements per line w/space delimiter:# 1) a key name (from keyTable.h; shortened from /usr/include/linux/input.h).# 2) a GPIO pin number; when grounded, will simulate corresponding keypress.# Uses Broadcom pin numbers for GPIO.# If first element is GND, the corresponding pin (or pins, multiple can be# given) is a LOW-level output; an extra ground pin for connecting buttons.# A '#' character indicates a comment to end-of-line.# File can be edited "live," no need to restart retrogame!` # Here's a pin configuration for the PiGRRL 2 project:LEFT 4 # Joypad leftRIGHT 17 # Joypad rightUP 27 # Joypad upDOWN 22 # Joypad downA 18 # 'A' buttonB 23 # 'B' button# For configurations with few buttons (e.g. Cupcade), a key can be followed# by multiple pin numbers. When those pins are all held for a few seconds,# this will generate the corresponding keypress (e.g. ESC to exit ROM).# Only ONE such combo is supported within the file though; later entries# will override earlier.`
My setup is really simple: just the 4 directions on a joystick and two buttons. When I run retrogame:
./retrogame
I don't get any error messages or anything, but nothing happens when any of the GPIO pins are shorted to ground. I even tried directly touching one of the wires connected to the appropriate GPIO pin to the wire connecting to the GRD pin, but still nothing.
Actually, I found my problem after checking everything again. I was just using the wrong GPIO pins, I was mixing up left and right on the rows. It's working now though! Sorry for the trouble.
Thanks for making the new version where the only thing we have to change is the retrogame.cfg file. That makes it a lot easier to set up and such.
However, I still can't get it to work. I have a RPi3vB running RetroPie, and I followed the instructions on the Adafruit tutorial exactly, as far as I can tell.
Here is my retropie.cfg:
# Sample configuration file for retrogame.
# Really minimal syntax, typically two elements per line w/space delimiter:
# 1) a key name (from keyTable.h; shortened from /usr/include/linux/input.h).
# 2) a GPIO pin number; when grounded, will simulate corresponding keypress.
# Uses Broadcom pin numbers for GPIO.
# If first element is GND, the corresponding pin (or pins, multiple can be
# given) is a LOW-level output; an extra ground pin for connecting buttons.
# A '#' character indicates a comment to end-of-line.
# File can be edited "live," no need to restart retrogame!
`
# Here's a pin configuration for the PiGRRL 2 project:My setup is really simple: just the 4 directions on a joystick and two buttons. When I run retrogame:
./retrogame
I don't get any error messages or anything, but nothing happens when any of the GPIO pins are shorted to ground. I even tried directly touching one of the wires connected to the appropriate GPIO pin to the wire connecting to the GRD pin, but still nothing.
Any ideas on what I can do to troubleshoot?