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

    Recommended way to configure GPIO buttons-to-commands

    Scheduled Pinned Locked Moved Help and Support
    gpio
    3 Posts 2 Posters 1.2k 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.
    • caver01C
      caver01
      last edited by

      I am wondering if someone can recommend the best/easiest method for configuring GPIO-triggered commands. I used to run mholgatem's excellent GPIOneer but compatibility with the Jessie image has held back recent updates. As such, I am looking for an alternative that meets the following requirements:

      1. Loads at startup.
      2. Adjustable/Configurable PIN# to ground triggers (buttons) and OK if it requires editing a config file.
      3. GPIO button press can issue a keyboard keystroke.
      4. GPIO button press can alternatively issue a complete command (i.e. shutown, or volumne up/down, etc.--whatever I specify in a config)
      5. Compatible with RetroPie
      6. A somewhat straightforward install and setup (as opposed to, "Just build a python script!")

      I know there are a few options, including writing my own python scripts, which I could create someday as I gain more experience, but I figured some of you might be willing to share your experience with what you may already be using.

      One note: I did setup a BASH script that launches at startup following this thread so I do have a soft shutdown (and startup on PIN3) working, but this solution doesn't really scale easily, and there is a delay that requires me to hold down the button for it to register. I expect a python solution is better suited to this situation.

      My 4-player cocktail style cabinet built as a custom "roadcase"

      1 Reply Last reply Reply Quote 0
      • B
        bidinou
        last edited by

        HI ! Really sorry for hijacking this thread with my own question but I never managed to get an answer :) Does using GPIO reduce input delay compared to USB controllers/keyboards, in emulators ? (yes, there is always a slight input delay ;)

        caver01C 1 Reply Last reply Reply Quote -1
        • caver01C
          caver01 @bidinou
          last edited by

          @bidinou said in Recommended way to configure GPIO buttons-to-commands:

          HI ! Really sorry for hijacking this thread with my own question but I never managed to get an answer :)

          Why are you hijacking? I don't mind adding additional content to this, but if you already asked this question somewhere, why didn't you continue the conversation with whomever responded?

          My 4-player cocktail style cabinet built as a custom "roadcase"

          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.