A python class to control Delcom USBLMP Products 904x multi-color, USB, visual signal indicators
Project description
delcom904x
delcom904x is a python class to control the Delcom Products 904x series multi-color visual signal indicators. These are USB HID devices that are easily programmable on most platforms.
It has been tested with the 904005-SB
but should work with any of the other models without any issues. Currently if you have a
green, red and yellow indicator, substitute --blue
for yellow (they're wired the same).
Requirements
cython-hidapi - Cross platform library to control USB HID devices.
hidapi - Python wrapper for the hidapi
Installation
$ pip install delcom904x
$ ./control_delcom904x.py --green --red --flash --cycle
Example Usage
import delcom904x
light = delcom904x.DelcomMultiColorIndicator()
light.set_color(delcom904x.red, flashing = true)
udev Notes
On Linux machines, the default udev rulesets may set the permissions on the device to only
be accessible to the root user. Add the following rule to /etc/udev/rules.d/
and
re-plugin the indicator to allow all users to access the device (optionally, consider
changing MODE="0666"
to GROUP="dialout"
to allow only the dialout group access).
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0fc5", ATTRS{idProduct}=="b080", MODE="0666"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for delcom904x-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d382cc6d28d685594cf8e1f28373c4a28894f6df7b83cbf028156a45ce0b50 |
|
MD5 | 1358bcb7e82b70b448c43724934b4cb2 |
|
BLAKE2b-256 | 6138a2033eaee2656efc4fd095f645ee94eaf6725c3fe99721ddf0762b14baa1 |