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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: led_list-0.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 587dbab73446d78f0b56c88d4a5968f5a9493fee497b9f5db8dd66634468ed74
MD5 d6a678389affa3c3739a9d93973c2f05
BLAKE2b-256 b4097404809bebf5cceea5bb3c7bcdd5588af2dcee325b7918eda22516f2c994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: led_list-0.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5010f668f34a9a798135b4ede3adcb321b5b0dd98e17d7886b311059ef4a6a50
MD5 f27c416e3b451e2d19aeecb3db16b891
BLAKE2b-256 f8579c1c8a745936aedf4c368708a94ae6531f7f23f608bd174dc79917bb6ed2

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