Fix per-key RGB: correct pixel-lookup, chain-length, effect config

- pixel-lookup: column-by-column snake per foostan Corne v1.1 PCB diagram
- chain-length=27 in keymap (fork shield overlay overrides to 10)
- EFF_START=4 (layer indicators), ON_START=y, AUTO_OFF_IDLE=n
- Document per-key RGB in README with LED chain order and usage
This commit is contained in:
afiqzudinhadi 2026-06-26 00:11:45 +08:00
parent 8f25d48822
commit f1ba3dec58
3 changed files with 61 additions and 7 deletions

View file

@ -72,12 +72,12 @@ CONFIG_ZMK_EXT_POWER=y
### RGB UNDERGLOW
CONFIG_ZMK_RGB_UNDERGLOW=y
CONFIG_ZMK_RGB_UNDERGLOW_ON_START=n
CONFIG_ZMK_RGB_UNDERGLOW_ON_START=y
CONFIG_WS2812_STRIP=y
# 0=Solid 1=Breathe 2=Spectrum 3=Swirl
CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=3
CONFIG_ZMK_RGB_UNDERGLOW_EFF_START=4
CONFIG_ZMK_RGB_UNDERGLOW_BRT_STEP=1
CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=y
CONFIG_ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE=n
CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n
### PER-KEY RGB LAYER (darknao fork)

View file

@ -15,6 +15,10 @@
#include <dt-bindings/zmk/reset.h>
#include <dt-bindings/zmk/rgb_colors.h>
&led_strip {
chain-length = <27>;
};
/ {
behaviors {
ht_mute_pp: ht_mute_pp {
@ -81,12 +85,20 @@
*/
underglow-layer {
compatible = "zmk,underglow-layer";
/* Foostan Corne v1.1 LED chain (left half):
* Column-by-column snake with interleaved thumbs.
* chain 0-5: underglow (skip)
* chain 6-8: thumb0 bottom/home/top col0
* chain 9-12: top/home/bottom col1 thumb1 thumb2
* chain 13-17: bottom/home/top col2 top/home/bottom col3
* chain 18-22: bottom/home/top col4 top/home/bottom col5
*/
pixel-lookup = <
255 255 255 255 255 255
0 1 2 3 4 5
17 16 15 14 13 12
24 25 26 27 28 29
38 37 36
36 24 12 0 1 13
25 37 38 26 14 2
3 15 27 28 16 4
5 17 29
>;
carp_rgb {