Fix zone 2 placement, add colour correction and white balance

Zone 2 is the light under the thumb wheel, not the DPI button. The scroll-wheel
and logo LEDs have much weaker blue than the thumb-wheel LED, so the plugin now
trims their red and green (measured by eye) and applies an optional gamma curve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Opus 5.5 committed 2026-11-19 16:05:14 +01:00
1 parent 25f3e31b8f
commit f4eb036a98
3 files changed
+35 -16

No files matched your search

+4 -2
View File
@@ -14,14 +14,16 @@ The plugin streams colours live with a firmware command the vendor app never use
to the LED driver with no storage writes, so it doesn't wear anything out. It handles
110+ updates a second. The `static`/`breathe`/`off` commands below change the stored
profile instead (one storage write each), which survives replugging.
Zones: 0 = under the scroll wheel, 1 = palm logo, 2 = DPI button.
Zones: 0 = under the scroll wheel, 1 = palm logo, 2 = under the thumb wheel.
The scroll-wheel and logo LEDs have much weaker blue than the thumb-wheel LED; the plugin
scales their red to 15% and green to 10% ("White Balance") plus a gamma setting.
```
python rat8.py live ff0000 00ff00 0000ff # RAM only, until release/replug
python rat8.py release # back to the stored lighting
python rat8.py info
python rat8.py static 00aaff # all zones
python rat8.py static ff0000 00ff00 0000ff # scroll palm dpi
python rat8.py static ff0000 00ff00 0000ff # scroll palm thumb
python rat8.py breathe ff00ff -p 3
python rat8.py off
python rat8.py restore profile_backup.json