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

This commit is contained in:
Thomas Weißschuh authored and GitHub committed 2022-10-06 21:24:41 +11:00
1 parent c255174cf3
commit cbe1c22d46
3 files changed
+34 -22

No files matched your search

+7
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.