Skip to main content

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


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.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

led_list-0.4.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file led_list-0.4.2.tar.gz.

File metadata

  • Download URL: led_list-0.4.2.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

Hashes for led_list-0.4.2.tar.gz
Algorithm Hash digest
SHA256 7de48491d563c0d25ccd4c727b29a1c767ae5a93f3a4e83d092487b5b1834a76
MD5 270e6fb0230b12ac9edece67941512e6
BLAKE2b-256 29d3b2f0f614a3ff61cbccfff149abd45b5d85e46ae4043153e80b0c639ce3a6

See more details on using hashes here.

File details

Details for the file led_list-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: led_list-0.4.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

Hashes for led_list-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96b547106c5436ad711f0d7369938d6d275fb95b778095da75c67171842a9715
MD5 59575f38172ca1c8716156b91b3eb6e0
BLAKE2b-256 fd0331d47175dbd6e265b53e5f89f6f79d0c3f045fa39a43c20c7420e662e113

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page