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.5.3.tar.gz (2.9 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.5.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for led_list-0.5.3.tar.gz
Algorithm Hash digest
SHA256 539df9d31f87c8ea8245c60a2c80603c023d0aff233757932a4eaf1d798a7572
MD5 9dbf9580de5a767d08529f72660ab431
BLAKE2b-256 d6d2913545d058e078e1c45b3db11152ba0a3081e3a9854c9a417091b2be0732

See more details on using hashes here.

File details

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

File metadata

  • Download URL: led_list-0.5.3-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.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4070fef001722bbff5b69530899ff2bc1a83e47f00a690a4f5504814cb1014ef
MD5 484ac3e76b3d0632a6e46c09a04f9dbb
BLAKE2b-256 56e229e2dfd20e2f1b7c178087df8284098ae88c411d409dea6e7902c6759d6f

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