g13 0.1.0

libusb based crate to communicate with a Logitech G13 without accompanying drivers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use g13::*;

pub fn main() -> Result<(), G13Error>{
    let logo = include_bytes!("./logo.lpbm");

    let mut manager = G13Manager::new()?;
    let mut devices = manager.discover()?;

    let device = devices.first_mut().unwrap();

    device.clear_lcd()?;
    device.write_lcd(logo)?;

    Ok(())
}