blob: 770d5317369a0b7a1f9a7acfe7905a4468e93e29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# ledctl
A simple Python script to control a WS2812B LED or LED strip connected to a rasperry pi.
systemd services are included to set the LED color depending on the current boot status.
## Prerequisites
Python 3
The AdaFruit CircuitPython NeoPixel library
## Configuration
Blacklist the snd_bcm2835 module
Edit /boot/config.txt and comment out dtparam=audio=on
## Installation
Execute the following commands as root:
```
make install
systemctl daemon-reload
systemctl enable led-boot led-ready
```
## Usage
Use the `ledctl` script to set the LED color.
`
ledctl <color>
`
Valid colors are
- on, off
- red, green, blue, yellow, pink, cyan
- \#rrggbb e.g. #ff0000
|