pyBusylight is a native python library which controls Kuando Busylight devices. It is intented to serve as a foundational component which can be integrated into other higher-level scripts.
pyBusylight makes use of PyUSB to control Busylight and used extensive cues from the busylight node library.
- signal
- pyusb
Note: Pyusb requires at least one of the three supported backends to be installed.
If you're on a MAC you can install libusb via:
brew install libusb
On Windows you can follow the info here. https://github.com/walac/pyusb/blob/master/README.rst#installing
On Ubuntu 16.04/18.04
sudo apt-get install libusb-1.0-0 """)
user@hostname$ sudo python3
from pybusylight import pybusylight
bl=pybusylight.busylight()
bl.send()
sudo python3 ./example.py
See the video here --> https://youtu.be/IsQf0T-VDqI
Edit /etc/udev/rules.d/30-busylight.rules:
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bc0", GROUP="pi", OWNER="pi", MODE="0664"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bca", GROUP="pi", OWNER="pi", MODE="0664"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bcc", GROUP="pi", OWNER="pi", MODE="0664"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="3bcd", GROUP="pi", OWNER="pi", MODE="0664"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27bb", ATTRS{idProduct}=="f848", GROUP="pi", OWNER="pi", MODE="0664"
Reload Udev rules:
sudo udevadm control --reload-rules