Skip to main content

Rust

Add the generated crate as a path dependency:

[dependencies]
onewili = { path = "./rust" }

Connect and send a first command:

let mut dev = onewili::OneWili::connect()?; // finds the device by USB VID

// dev.gui().set_led_color(ledindex: i32, red: i32, green: i32, blue: i32, duration: i32, mode: owLEDManagerLEDMode) -> Result<(), OwError>
dev.gui().set_led_color(/* args */)?;

Full command list: GUI Functions - or start at the API index.