Commit graph

5 commits

Author SHA1 Message Date
darknao
01f8f363f8 underglow-layer: add fade-delay property 2026-06-24 18:57:47 +08:00
darknao
f178f86a54 underglow-layer: use behaviors to control RGBs 2026-06-24 18:57:42 +08:00
darknao
da994be0ba underglow-layer: enable only if config exists in devicetree 2026-06-24 18:55:49 +08:00
darknao
0ca086a845 underglow-layer: track layer changes with event & battery life optimization
I tried using event instead of the 25ms underglow_tick to update the underglow on
layer change only. That didn't improve the battery life much....
The second change is cutting off the led strip power if the underglow is
not defined for a layer. Power is restored if a layer with rgb is
activated, and cut off as soon as the layer is disabled.
This, on the other hand, improves the battery life a lot, especially if you
don't use rgb on your base layer.
If you are using rgb on your base layer, setting
CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE is highly recommended.
2026-06-24 18:55:49 +08:00
darknao
6f9a411793 underglow-layer: use devicetree & clean up code 2026-06-24 18:55:23 +08:00