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.5.2.tar.gz
(2.9 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.5.2.tar.gz.
File metadata
- Download URL: led_list-0.5.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5bcf0b4d731e9ae3cef87db3362e71ede71e8064f0cdd7634ce234c2cb75916
|
|
| MD5 |
58db7f2c530a5993056d46a762bf86e0
|
|
| BLAKE2b-256 |
65902d1a81fa0e48ff87b4e9f2dd6cc440e31cdd35a46e2a3e0d1ac6a1308972
|
File details
Details for the file led_list-0.5.2-py3-none-any.whl.
File metadata
- Download URL: led_list-0.5.2-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
f8b3f2c5b780e7f158928b82a2ca96711f4fcfa5af912be333aff1b4f785d3f0
|
|
| MD5 |
3b3485403e15e0ad6be6561d2bbe0229
|
|
| BLAKE2b-256 |
459428d5933bbf72d401315bee78e795a62da1a325b39365519d430fc1b2dc4f
|