CherryRGB
Usage
Find usb keyboard and initialize it
// Optionally, filter for product id if you have more than one cherry device.
let devices = find_devices.unwrap;
let = devices.first.unwrap.to_owned;
let device_handle = init_device.unwrap
fetch_device_state.unwrap;
Set LED animation
// Create color: green
let color = RGB8new;
let use_rainbow_colors: bool = false;
set_led_animation
.unwrap;
Set custom colors
// Reset all colors first
reset_custom_colors.unwrap;
// Create color: green
let color = RGB8new;
// Create keys struct and set key with index 42 to desired color
let mut keys = new;
keys.set_led.unwrap;
// Send packets to keyboard
set_custom_colors.unwrap;