Recommended way to configure GPIO buttons-to-commands
-
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:
- Loads at startup.
- Adjustable/Configurable PIN# to ground triggers (buttons) and OK if it requires editing a config file.
- GPIO button press can issue a keyboard keystroke.
- GPIO button press can alternatively issue a complete command (i.e. shutown, or volumne up/down, etc.--whatever I specify in a config)
- Compatible with RetroPie
- 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.
-
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 ;)
-
@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?
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.