razer_chroma

Crates.iorazer_chroma
lib.rsrazer_chroma
version0.1.0
sourcesrc
created_at2019-05-16 02:16:06.389318
updated_at2019-05-16 02:16:06.389318
descriptionThe razer_chroma crate provides Razer Chroma SDK functionality in a safe and simple API.
homepage
repository
max_upload_size
id134604
size64,444
Chris (ccbrown)

documentation

README

razer-chroma-rs

The razer_chroma crate provides Razer Chroma SDK functionality in a safe and simple API.

You can initialize the SDK like so:

let sdk = match razer_chroma::SDK::new() {
    Some(sdk) => sdk,
    None => { warn!("razer drivers not installed or supported"); return },
}

Once you have the SDK instance, you can create and activate effects like so:

let effect = sdk.create_keyboard_effect(razer_chroma::KeyboardEffect::Static{
    color: razer_chroma::Color::from_rgb(0, 0, 255),
})?;
sdk.set_effect(&effect)?;
Commit count: 0

cargo fmt