forked from mirrors/qmk_userspace
quantum: led: split out led_update_ports() for customization of led behaviour (#14452)
This commit is contained in:
parent
c255174cf3
commit
cbe1c22d46
3 changed files with 34 additions and 22 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue