quantum: led: split out led_update_ports() for customization of led behaviour (#14452)

This commit is contained in:
Thomas Weißschuh 2022-10-06 12:24:41 +02:00 committed by GitHub
parent c255174cf3
commit cbe1c22d46
Failed to generate hash of commit
3 changed files with 34 additions and 22 deletions

View file

@ -101,6 +101,13 @@ The `host_keyboard_led_state()` function will report the LED state returned from
bool caps = host_keyboard_led_state().caps_lock;
```
## `led_update_ports()`
This function writes the LED state to the actual hardware. Call it manually
from your `led_update_*()` callbacks to modify the handling of the standard
keyboard LEDs.
For example when repurposing a standard LED indicator as layer indicator.
## Setting Physical LED State
Some keyboard implementations provide convenient methods for setting the state of the physical LEDs.