Update Readme
This commit is contained in:
@@ -1,30 +1,28 @@
|
||||
# ButtonCtl
|
||||
<div style="text-align:center"><img src="./buttons-platzierung.png" /></div>
|
||||

|
||||
|
||||
### 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
|
||||

|
||||

|
||||

|
||||
→ Linker Button
|
||||
## Usage
|
||||
|
||||

|
||||

|
||||

|
||||
→ Mittlerer Button
|
||||
### Open Door
|
||||
<span style="color:red">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
→ Left Button
|
||||
|
||||

|
||||

|
||||

|
||||
→ Kurze Wartezeit
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:green">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
→ Middle Button
|
||||
|
||||

|
||||

|
||||

|
||||
<span style="color:red">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
→ Short Delay
|
||||
|
||||
----------
|
||||
<span style="color:green">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
|
||||

|
||||

|
||||

|
||||
→ Linker Button
|
||||
### Abort
|
||||
<span style="color:red">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
→ Left Button
|
||||
|
||||

|
||||

|
||||

|
||||
→ Linker Button
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:green">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
→ Left Button
|
||||
|
||||

|
||||

|
||||

|
||||
<span style="color:red">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
|
||||
-----------
|
||||
### No-Op
|
||||
<span style="color:red">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
→ Middle Button
|
||||
|
||||

|
||||

|
||||

|
||||
→ Mittlerer Button
|
||||
|
||||

|
||||

|
||||

|
||||
<span style="color:red">◼</span>
|
||||
<span style="color:black">◼</span>
|
||||
<span style="color:red">◼</span>
|
||||
|
Reference in New Issue
Block a user