GPIO Buttons Using dtoverlay
-
Hi everyone,
I've recently built a ZeroW based NES emulator but have been running into issues getting it working in games. I have been trying to use the "dtoverlay=gpio-key" option in my config.txt to map the gpio pins where I have buttons to key presses and this has worked great. In EmulationStation menus I can navigate easily however when I launch the games the inputs don't work at all. I find it odd that it works perfectly until I launch a game. Does anybody know of any fixes to this or at least what the issue may be?I will note I have tried connecting a regular keyboard over bluetooth and the keybinds work fine, and I can play it perfectly with the bluetooth keyboard with the keys I mapped but the physical buttons on the PI don't work.
I have tried utilizing retrogame from adafruit however I have ran into issues there as the circuit I designed uses active-high buttons and that library is only active-low. I tried modifying the code to get it to work by changing the pull-up resistors to pull-downs and such but had no luck.
-
Please add more info about your setup, as detailed in https://retropie.org.uk/forum/topic/3/read-this-first.
For the input part - can you get a verbose log from the emulator and see what it reports ?
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.