RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Using GPIOs as Keyboard Strokes - Relating to NES LED/Reset/Power Buttons

    Scheduled Pinned Locked Moved Help and Support
    power buttonresetlednes
    1 Posts 1 Posters 700 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Colin1234
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      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.