We'd like to be able to run custom code whenever the led mode changes, reliably, without having to resort to checking the mode every cycle. For this purpose, we introduce the `onLEDModeChange()` handler plugins can hook into. It will be called every time `LEDControl.set_mode()` is called, even if that just sets the mode to the currently active one. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/733/head
parent
4c2e0a7635
commit
fddbd75ff8
Loading…
Reference in new issue