Skip to content

mbwilding/razer-chroma-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

razer-chroma-rs docs

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)?;

About

Razer Chroma SDK for Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 68.3%
  • C++ 31.7%