georgefst / gpio-button

Very small utility for running a command on a button press.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Runs a command when (pull-up) button on given GPIO port is pressed.

~~``` bash ./gpio-button 15 sudo poweroff


# EDIT
This is pretty redundant with the newer GPIO interface, which I'm moving my projects towards. The above would become
```bash
gpiomon -f -n 1 gpiochip0 15 && sudo poweroff

About

Very small utility for running a command on a button press.


Languages

Language:Rust 100.0%