diff --git a/1og/README.md b/1og/README.md index f22d75a..a96e6fd 100644 --- a/1og/README.md +++ b/1og/README.md @@ -1,30 +1,28 @@ # ButtonCtl -
+![](./buttons-platzierung.png) -### dependencies +### Dependencies - RPi python3-rpi.gpio -```bash +```sh sudo apt install python3-rpi-gpio ``` - OpenSSH client -```bash +```sh sudo apt install openssh ``` - circuitpython libraries for neopixel -```bash +```sh pip3 install adafruit-circuitpython-neopixel ``` -### install -```bash -git clone https://github.com/dylangoepel/buttonctl.git -cd buttonctl +### Install +```sh +cd buttonctl/1og ./service.sh # create systemd .service file -sudo systemctl enable buttond # autostart at boot -sudo systemctl start buttond # start as daemon +sudo systemctl enable --now buttond # start and autostart at boot ``` -### wiring +### Wiring - pin 23: left button input (pull-down) - pin 24: center button input (pull-down) - pin 22: right button input (pull-down) @@ -41,49 +39,49 @@ sudo systemctl start buttond # start as daemon (counter-clockwise) ``` -### usage -![Rot](https://placehold.it/15/ff0000/000000?text=+) -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) -→ Linker Button +## Usage -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Grün](https://placehold.it/15/00ff00/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) -→ Mittlerer Button +### Open Door + + + +→ Left Button -![Rot](https://placehold.it/15/ff0000/000000?text=+) -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) -→ Kurze Wartezeit + + + +→ Middle Button -![Grün](https://placehold.it/15/00ff00/000000?text=+) -![Schwarz](https://placehold.it/15/000000j/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) + + + +→ Short Delay ----------- + + + -![Rot](https://placehold.it/15/ff0000/000000?text=+) -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) -→ Linker Button +### Abort + + + +→ Left Button -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Grün](https://placehold.it/15/00ff00/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) -→ Linker Button + + + +→ Left Button -![Rot](https://placehold.it/15/ff0000/000000?text=+) -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) + + + ------------ +### No-Op + + + +→ Middle Button -![Rot](https://placehold.it/15/ff0000/000000?text=+) -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) -→ Mittlerer Button - -![Rot](https://placehold.it/15/ff0000/000000?text=+) -![Schwarz](https://placehold.it/15/000000/000000?text=+) -![Rot](https://placehold.it/15/ff0000/000000?text=+) + + +