A blinkstick library written in portable C. libblinkstick is packaged as a linkable library and a CLI tool. The following implementation is known to work in linux and macOS environments and likely works anywhere hidapi runs.
cmake .
to generate the Makefiles for your systemmake install
to install the shared library and cli toolThe blinkstick CLI allows you to turn on and off any number of connected devices, set their colors, or target specific LEDs.
After running make, you'll have a blinkstick
binary in target/
$ blinkstick --help
USAGE:
blinkstick [options...]
OPTIONS
--color set the color using a three rgb values
--count set the number of blinkstick devices to address
--index which led should be set
--channel which channel to use (BlinkStick Pro)
--debug turn on debug logging
Many thanks to the contributors who have helped out over the years.
And many thanks to @arvydas!