Teach Python lists with a BlinkStick LED strip.
Project description
led-list
Teach Python lists with a BlinkStick Flex! Each LED represents a list index which can change color and turn off.
Examples
Turn on all LEDs
from led_list import LEDList
# initialize list with all lights (32) colored white
l = LEDList(["white"] * 32)
Change specific index
from led_list import LEDList
# initialize list with all lights (32) colored white
l = LEDList(["white"] * 32)
# change first light to red
l[0] = "red"
# change second light to custom RGB value
l[1] = (255, 50, 50)
Turn off lights
from led_list import LEDList
# initialize list with all lights (32) colored white
l = LEDList(["white"] * 32)
# turn off every light sequentially
for x in range(len(l)):
l[x] = "black"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
led_list-0.4.1.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file led_list-0.4.1.tar.gz.
File metadata
- Download URL: led_list-0.4.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45550296e4ea62a4583dd30468bb9483e2bf5ce87d129185d948a58c612cfb6b
|
|
| MD5 |
3a5ec7276abd96ac8078b2f33c2f77bb
|
|
| BLAKE2b-256 |
cdf8a27e1f7af2db97be884473a6359f250474231ef1de78152eb1166982a489
|
File details
Details for the file led_list-0.4.1-py3-none-any.whl.
File metadata
- Download URL: led_list-0.4.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f69645d3d89fa908c25f939b5ca23789766a466bc2e523a0919bf097d7ae03b
|
|
| MD5 |
3ff1f487bcfcadafd00c8354b7ced740
|
|
| BLAKE2b-256 |
f2e3cae18571ad3e0b904f516b45a1a984084bf6050b1edb31ac2a931049a2b4
|