Skip to main content

Control fit-statUSB devices

Project description

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

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

pystatusb-1.2.0.tar.gz (5.3 kB view details)

Uploaded Source

File details

Details for the file pystatusb-1.2.0.tar.gz.

File metadata

  • Download URL: pystatusb-1.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pystatusb-1.2.0.tar.gz
Algorithm Hash digest
SHA256 2682a482a64b6ab4984fa6d9aa1aff3914c35dc407ee1fefcf19961a08ebfd3f
MD5 9b2811fd89177a987c537997a1f6aa83
BLAKE2b-256 f4780744edf5717d6dfb2292b8e1c4aedfa9811af5a7c001adcd6a971ca29f93

See more details on using hashes here.

Supported by

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