use std::error::Error;
use openrgb::OpenRGB;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let client = OpenRGB::connect().await?;
let controllers = client.get_controller_count().await?;
for controller_id in 0..controllers {
println!("controller {}: {:#?}", controller_id, client.get_controller(controller_id).await?);
}
Ok(())
}