Skip to main content

pystatusb

Control a fit-statUSB from python

The statUSB is a tiny, USB LED that can be set display various colors and sequences. This library allows easy control of it from python.

Use one of the simple helpers to set a color or sequence. After sending the configuration, the device will keep it without the python program running, and persist until a different color command is sent or the device is unplugged.

from pystatusb import StatUSB, Colors

led = StatUSB()                  # Auto-detect the device
led.set_transition_time(200)    # Set the fade time to 200ms between each color
led.set_color_rgb(0xff0000)      # 100% bright red
led.set_color(Colors.VIOLET, 20) # 20% bright violet
led.set_sequence("#0000FF-0500#00FFFF-0250#000000-0250") # Blue for 0.5 sec, cyan for 0.25 sec, off for 0.25 sec

Release files for pystatusb 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pystatusb 1.2.0
File Size Uploaded
pystatusb-1.2.0.tar.gz 5.3 kB Details

Release files / pystatusb-1.2.0.tar.gz

Download URL pystatusb-1.2.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2682a482a64b6ab4984fa6d9aa1aff3914c35dc407ee1fefcf19961a08ebfd3f
BLAKE2b-256 checksum
How to use checksums
f4780744edf5717d6dfb2292b8e1c4aedfa9811af5a7c001adcd6a971ca29f93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.0

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page