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.0.tar.gz
(2.8 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.0.tar.gz.
File metadata
- Download URL: led_list-0.5.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a6b67cadab786f80d970d0cf33720f7bac4ec045ab897baedcd53989e06a31
|
|
| MD5 |
b04373327d00ca45fb0847d081842a62
|
|
| BLAKE2b-256 |
a0b5de90ec68d597440737933b6f6012759f8eab2e5dfd36b3102f7a923ffffd
|
File details
Details for the file led_list-0.5.0-py3-none-any.whl.
File metadata
- Download URL: led_list-0.5.0-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 |
f0a2baaae020d333b08262d493bda15cc113d976aa0ba99012365f17a5c69d6d
|
|
| MD5 |
6cbe7ba7056a89104736282d482e8d64
|
|
| BLAKE2b-256 |
8f5dd4babc8d14200498079ca2295e0bf6d5f4b01ab3800748018e7bd8d73e9d
|