diff options
author | Dennis Snell <dennis.snell@automattic.com> | 2021-12-08 12:56:19 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2021-12-08 19:50:35 -0800 |
commit | fe8a53b09720b33ada9363f4a5abad82022ca967 (patch) | |
tree | 93c681ce1462e6f2d5df755210a6dfe189c8a443 | |
parent | 053f48d2cf458c4fe6459c10452a118b6c28229a (diff) |
Add macro for defining LED layouts on ergodox_ez glow
In this patch we're adding a macro based on `LAYOUT_ergodox_pretty`
that allows laying out layer LED colors visually the same way that the
key layouts are set.
-rw-r--r-- | keyboards/ergodox_ez/ergodox_ez.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/ergodox_ez.h b/keyboards/ergodox_ez/ergodox_ez.h index eb04cb88c0..905995ab17 100644 --- a/keyboards/ergodox_ez/ergodox_ez.h +++ b/keyboards/ergodox_ez/ergodox_ez.h @@ -288,3 +288,25 @@ extern keyboard_config_t keyboard_config; { R05, R15, R25, R35, R45, R55 }, \ { R06, R16, R26, R36, R46, KC_NO } \ } + +/* ---- LEFT HAND ---- ---- RIGHT HAND ---- */ +#define LED_LAYOUT_ergodox_pretty( \ + L01,L02,L03,L04,L05, R01,R02,R03,R04,R05, \ + L11,L12,L13,L14,L15, R11,R12,R13,R14,R15, \ + L21,L22,L23,L24,L25, R21,R22,R23,R24,R25, \ + L31,L32,L33,L34,L35, R31,R32,R33,R34,R35, \ + L41,L42,L43,L44, R42,R43,R44,R45 ) \ + \ + /* matrix positions */ \ + { R01, R02, R03, R04, R05, \ + R11, R12, R13, R14, R15, \ + R21, R22, R23, R24, R25, \ + R31, R32, R33, R34, R35, \ + R42, R43, R44, R45, \ + \ + L05, L04, L03, L02, L01, \ + L15, L14, L13, L12, L11, \ + L25, L24, L23, L22, L21, \ + L35, L34, L33, L32, L31, \ + L44, L43, L42, L41 \ + } |