3 releases (breaking)
Uses new Rust 2024
| 0.3.0 | Aug 11, 2025 |
|---|---|
| 0.2.0 | Aug 7, 2025 |
| 0.1.0 | Aug 3, 2025 |
#907 in Hardware support
Used in g11-macro-daemon
17KB
270 lines
g11-macro-keys
Library that models the USB/HID interface for the Logitech G11 Keyboard's macro keys.
This was primarily written for use within g11-macro-daemon, but you may check out the examples to see how you could build your own weird stuff on top of this library.
Key Layout
The macro keys interface covers:
- 18 'G' keys
- 3 'M' keys - each has its own LED
- 1 'MR' key - has its own LED
- 1 Backlight key
(M1) (M2) (M3) (MR) ... (💡)
┌───┐┌───┐┌───┐
│G1 ││G2 ││G3 │
└───┘└───┘└───┘
┌───┐┌───┐┌───┐
│G4 ││G5 ││G6 │
└───┘└───┘└───┘
┌───┐┌───┐┌───┐
│G7 ││G8 ││G9 │
└───┘└───┘└───┘
┌───┐┌───┐┌───┐
│G10││G11││G12│
└───┘└───┘└───┘
┌───┐┌───┐┌───┐
│G13││G14││G15│
└───┘└───┘└───┘
┌───┐┌───┐┌───┐
│G16││G17││G18│
└───┘└───┘└───┘
Dependencies
~0.3–0.8MB
~19K SLoC