blinkstick-rs
blinkstick-rs provides an interface to control any BlinkStick device using Rust.
Examples
Sets the color of the 0th led to red
use BlinkStick;
let blinkstick = new;
blinkstick.set_color;
Sets the color of 0th, 2nd, 4th and 6th led to green.
use BlinkStick;
let blinkstick = new;
blinkstick.set_unified_color;
Turns every led blue
use BlinkStick;
let blinkstick = new;
blinkstick.set_all_colors;
Makes the 0th led blink 5 times, once every second, with a purple glow
use BlinkStick;
let blinkstick = new;
blinkstick.blink_color;
Makes the 1st, 3rd, 5th led blink 2 times, once every 200 miliseconds, with a yellow glow
use BlinkStick;
let blinkstick = new;
blinkstick.blink_unified_color;
Makes the 2nd led, pulse from an off state, to a blue glow, and then return back again to the off state with a two second animation time
use BlinkStick;
let blinkstick = new;
blinkstick.pulse_color;
Makes the 1st led transform from a red color into a green color over a period of five seconds, with 50 color updates.
use BlinkStick;
let blinkstick = new;
blinkstick.set_color;
blinkstick.transform_color;