ajazz-rs
Rust library for interacting with Ajazz Stream Docks.
Example
use ;
// Create instance of HidApi
let hid = new_hidapi;
// List devices and unsafely take first one
let = list_devices.remove;
// Connect to the device
let mut device = connect
.expect;
// Print out some info from the device
println!;
// Set device brightness
device.set_brightness.unwrap;
// Use image-rs to load an image
let image = open.unwrap;
// Write it to the device
device.set_button_image.unwrap;
// Flush
if device.updated