Crates.io | razer_driver_rs |
lib.rs | razer_driver_rs |
version | 0.1.0 |
source | src |
created_at | 2022-02-16 09:50:43.181752 |
updated_at | 2022-02-16 09:50:43.181752 |
description | Implementation of razer device USB commands |
homepage | |
repository | https://github.com/EchelonFour/razer_driver_rs |
max_upload_size | |
id | 533237 |
size | 47,888 |
A native rust library to communicate with Razer USB devices directly without any of the Razer software.
This project is missing many many features. However the framework is there to easily add anything missing.
Contributions are very welcome.
use razer_driver_rs::*;
let devices = scan_for_devices()?;
let keyboard = devices.keyboards.get(0).unwrap();
let brightness = keyboard.get_brightness()?;
println!("brightness {}", brightness);
keyboard.set_brightness(90)?;
This library is very heavily inspired by: