Using GPIOs as Keyboard Strokes - Relating to NES LED/Reset/Power Buttons
-
Hi, I'm relatively new to this. I'm in the process of putting together a Pi 3 B in a NES case and I'm making some good progress but I have a few questions.
Is there an easy way use a single GPIO as multiple keystrokes. I want the original NES reset button to hit a GPI that will then sent START+SELECT to exit the current game.
Additionally, I did something a little different instead of the Mausberry switch when it came to the LED/Power button and wanted to make sure it won't cause any issues. I have the NES LED connected to a GPIO and the power button connected to Pin 3 and the GND right beside it. I use Pin 3/GND to boot the Pi from a standby state (powered but off). A python script runs on startup that brings up the LED. When the power button is pressed again, the same script drops the LED and sends a 'halt" command to put the Pi into a standby state. Any harm in doing it this way? I'm more concerned about corruption etc. if it is done while a game is running. Does shutting down from the EmulationStation menu also just send a halt command or is there something else I should be adding into my script?
Thanks in advance
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.