# ButtonCtl ![](./buttons-platzierung.png) ### Dependencies - RPi python3-rpi.gpio ```sh sudo apt install python3-rpi-gpio ``` - OpenSSH client ```sh sudo apt install openssh ``` - circuitpython libraries for neopixel ```sh pip3 install adafruit-circuitpython-neopixel ``` - SPI Enable SPI in raspi bootloader for GPIO10 ### Install ```sh cd buttonctl/1og ./service.sh # create systemd .service file sudo systemctl enable --now buttond # start and autostart at boot ``` ### Wiring - pin 23: left/aerie button input (pull-down) - pin 24: center button input (pull-down) - pin 22: right/cellar button input (pull-down) - pin 12: neopixel data - pin 4: (pull-down) #### 6-pin socket **GPIO** | | Notch | | |------|-------|----| | 23 | 24 | 12 | | 3.3V | GND | 22 | **KiCAD** | | Notch | | |---|-------|---| | 5 | 3 | 1 | | 6 | 4 | 2 | **UV Klemme** | | Notch | | |------------------------------------------------------------|---------------------------------------------------------------|-----------------------------------------------------------| | grün | braun | blau | | rot | schwarz | gelb | ![](pins.png) - led strip: ``` (1-12) (13-24) (25-36) AERIE KELLER (counter-clockwise, top is first) ``` ## Usage ### Open Door → Left Button → Middle Button → Short Delay ### Abort → Left Button → Left Button ### No-Op → Middle Button