summaryrefslogtreecommitdiff
path: root/keyboards/avalanche/v4
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-06-14 22:01:13 +1000
committerGitHub <noreply@github.com>2023-06-14 22:01:13 +1000
commit9551a0a38aca3d32e38a123ae2854a8c82b26195 (patch)
treeb246fae82fe993ad7d7aabc51cc2fa408f8517b5 /keyboards/avalanche/v4
parent6c4286152f924fc98a6f18e14987f1db6e55ae5e (diff)
Move `RGBLIGHT_LED_MAP` to data driven (#21095)
Diffstat (limited to 'keyboards/avalanche/v4')
-rw-r--r--keyboards/avalanche/v4/config.h23
-rw-r--r--keyboards/avalanche/v4/info.json1
2 files changed, 1 insertions, 23 deletions
diff --git a/keyboards/avalanche/v4/config.h b/keyboards/avalanche/v4/config.h
index d60748d9bc..37d139eaad 100644
--- a/keyboards/avalanche/v4/config.h
+++ b/keyboards/avalanche/v4/config.h
@@ -21,29 +21,6 @@
# define RGBLIGHT_EFFECT_KNIGHT
# define RGBLIGHT_EFFECT_SNAKE
# define RGBLIGHT_EFFECT_CHRISTMAS
-
-
-// RGB LED Conversion macro from physical array to electric array. This results in better looking animated effects.
-# define LED_LAYOUT( \
- /* LED matrix */ \
- L01, L02, L03, L04, L05, L06, L011, L012, L013, L014, L015, L016, \
- L11, L12, L13, L14, L15, L16, L111, L112, L113, L114, L115, L116, \
- L20, L21, L22, L23, L24, L25, L26, L211, L212, L213, L214, L215, L216, L217, \
- L31, L32, L33, L34, L35, L36, L37, L38, L39, L310, L311, L312, L313, L314, L315, L316, \
- L44, L45, L46, L47, L48, L49, L410, L411, L412, L413 )\
- { \
- /* left half - electrical wiring order */ \
- L47,L48,L38,L37,L36,L26,L16,L06,L05,L15,L25,L35,L46,L45,L34,L24,L14,L04,L03,L13,L23,L33,L44,L32,L22,L12,L02,L01,L11,L21,L31,L20, \
- /* right half - electrical wiring order */ \
- L410,L49,L39,L310,L311,L211,L111,L011,L012,L112,L212,L312,L411,L412,L313,L213,L113,L013,L014,L114,L214,L314,L413,L315,L215,L115,L015,L016,L116,L216,L316,L217 \
- }
-# define RGBLIGHT_LED_MAP LED_LAYOUT( \
- /* animation order. */ \
- 4, 8, 12, 17, 22, 27, 40, 45, 50, 54, 58, 62, \
- 3, 7, 11, 16, 21, 26, 39, 44, 49, 53, 57, 61, \
- 0, 2, 6, 10, 15, 20, 25, 38, 43, 48, 52, 56, 60, 63, \
- 1, 5, 9, 14, 19, 24, 29, 31, 33, 35, 37, 42, 47, 51, 55, 59, \
- 13, 18, 23, 28, 30, 32, 34, 36, 41, 46 )
#endif
#ifdef OLED_ENABLE
diff --git a/keyboards/avalanche/v4/info.json b/keyboards/avalanche/v4/info.json
index 399ebb82a3..10591c3129 100644
--- a/keyboards/avalanche/v4/info.json
+++ b/keyboards/avalanche/v4/info.json
@@ -26,6 +26,7 @@
},
"rgblight": {
"max_brightness": 100,
+ "led_map": [28, 30, 31, 29, 24, 25, 26, 27, 22, 21, 20, 19, 23, 18, 14, 15, 16, 17, 12, 11, 10, 9, 13, 5, 6, 7, 8, 4, 3, 2, 1, 0, 34, 32, 33, 35, 37, 38, 39, 40, 45, 44, 43, 42, 36, 41, 47, 48, 49, 50, 54, 53, 52, 51, 46, 55, 56, 57, 58, 62, 61, 60, 59, 63],
"split_count": [32, 32]
},
"processor": "atmega32u4",