summaryrefslogtreecommitdiff
path: root/ledctl/README.md
blob: 81eaf0801aa7bb517a9b4e1cea8110c21bbc5fe5 (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
# 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