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

|
||||||
|
|
||||||
### dependencies
|
### Dependencies
|
||||||
- RPi python3-rpi.gpio
|
- RPi python3-rpi.gpio
|
||||||
```bash
|
```sh
|
||||||
sudo apt install python3-rpi-gpio
|
sudo apt install python3-rpi-gpio
|
||||||
```
|
```
|
||||||
- OpenSSH client
|
- OpenSSH client
|
||||||
```bash
|
```sh
|
||||||
sudo apt install openssh
|
sudo apt install openssh
|
||||||
```
|
```
|
||||||
- circuitpython libraries for neopixel
|
- circuitpython libraries for neopixel
|
||||||
```bash
|
```sh
|
||||||
pip3 install adafruit-circuitpython-neopixel
|
pip3 install adafruit-circuitpython-neopixel
|
||||||
```
|
```
|
||||||
|
|
||||||
### install
|
### Install
|
||||||
```bash
|
```sh
|
||||||
git clone https://github.com/dylangoepel/buttonctl.git
|
cd buttonctl/1og
|
||||||
cd buttonctl
|
|
||||||
./service.sh # create systemd .service file
|
./service.sh # create systemd .service file
|
||||||
sudo systemctl enable buttond # autostart at boot
|
sudo systemctl enable --now buttond # start and autostart at boot
|
||||||
sudo systemctl start buttond # start as daemon
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### wiring
|
### Wiring
|
||||||
- pin 23: left button input (pull-down)
|
- pin 23: left button input (pull-down)
|
||||||
- pin 24: center button input (pull-down)
|
- pin 24: center button input (pull-down)
|
||||||
- pin 22: right button input (pull-down)
|
- pin 22: right button input (pull-down)
|
||||||
@@ -41,49 +39,49 @@ sudo systemctl start buttond # start as daemon
|
|||||||
(counter-clockwise)
|
(counter-clockwise)
|
||||||
```
|
```
|
||||||
|
|
||||||
### usage
|
## Usage
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||
→ Linker Button
|
|
||||||
|
|
||||||

|
### Open Door
|
||||||

|
<span style="color:red">◼</span>
|
||||||

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

|
<span style="color:black">◼</span>
|
||||||

|
<span style="color:green">◼</span>
|
||||||

|
<span style="color:red">◼</span>
|
||||||
→ Kurze Wartezeit
|
→ 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>
|
||||||
|
|
||||||

|
### Abort
|
||||||

|
<span style="color:red">◼</span>
|
||||||

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

|
<span style="color:black">◼</span>
|
||||||

|
<span style="color:green">◼</span>
|
||||||

|
<span style="color:red">◼</span>
|
||||||
→ Linker Button
|
→ 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
|
||||||
|
|
||||||

|
<span style="color:red">◼</span>
|
||||||

|
<span style="color:black">◼</span>
|
||||||

|
<span style="color:red">◼</span>
|
||||||
→ Mittlerer Button
|
|
||||||
|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||
|
Reference in New Issue
Block a user