summaryrefslogtreecommitdiffstats
path: root/keyboards/avalanche
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/avalanche')
-rw-r--r--keyboards/avalanche/v2/config.h8
-rw-r--r--keyboards/avalanche/v2/info.json4
-rw-r--r--keyboards/avalanche/v3/config.h8
-rw-r--r--keyboards/avalanche/v3/info.json4
-rw-r--r--keyboards/avalanche/v4/config.h42
-rw-r--r--keyboards/avalanche/v4/info.json17
-rw-r--r--keyboards/avalanche/v4/rules.mk1
7 files changed, 24 insertions, 60 deletions
diff --git a/keyboards/avalanche/v2/config.h b/keyboards/avalanche/v2/config.h
deleted file mode 100644
index 5d7c1c2047..0000000000
--- a/keyboards/avalanche/v2/config.h
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2022 Vitaly Volkov (@vlkv)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#define RGBLED_NUM 12
-#define RGBLED_SPLIT { 6, 6 }
-#define RGBLIGHT_SPLIT
diff --git a/keyboards/avalanche/v2/info.json b/keyboards/avalanche/v2/info.json
index 92f02721de..62c284a845 100644
--- a/keyboards/avalanche/v2/info.json
+++ b/keyboards/avalanche/v2/info.json
@@ -18,6 +18,10 @@
{"pin_a": "B5", "pin_b": "F4", "resolution": 2}
]
},
+ "rgblight": {
+ "led_count": 12,
+ "split_count": [6, 6]
+ },
"ws2812": {
"pin": "D3"
},
diff --git a/keyboards/avalanche/v3/config.h b/keyboards/avalanche/v3/config.h
deleted file mode 100644
index c6042255e3..0000000000
--- a/keyboards/avalanche/v3/config.h
+++ /dev/null
@@ -1,8 +0,0 @@
-// Copyright 2022 Vitaly Volkov (@vlkv)
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#define RGBLED_NUM 12
-#define RGBLED_SPLIT { 7, 7 }
-#define RGBLIGHT_SPLIT
diff --git a/keyboards/avalanche/v3/info.json b/keyboards/avalanche/v3/info.json
index ed507485f5..8cf8187df7 100644
--- a/keyboards/avalanche/v3/info.json
+++ b/keyboards/avalanche/v3/info.json
@@ -21,6 +21,10 @@
"split": {
"soft_serial_pin": "D2"
},
+ "rgblight": {
+ "led_count": 12,
+ "split_count": [7, 7]
+ },
"ws2812": {
"pin": "D3"
},
diff --git a/keyboards/avalanche/v4/config.h b/keyboards/avalanche/v4/config.h
index 51b7cb7537..b88dc20535 100644
--- a/keyboards/avalanche/v4/config.h
+++ b/keyboards/avalanche/v4/config.h
@@ -3,50 +3,8 @@
#pragma once
-#ifdef RGBLIGHT_ENABLE
-# define RGBLED_NUM 64
-# define RGBLED_SPLIT { 32, 32 }
-# define RGBLIGHT_SPLIT
-# define RGBLIGHT_HUE_STEP 10
-# define RGBLIGHT_SAT_STEP 17
-# define RGBLIGHT_VAL_STEP 17
-
# define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL+2
-# define RGBLIGHT_EFFECT_ALTERNATING
-# define RGBLIGHT_EFFECT_RGB_TEST
-# define RGBLIGHT_EFFECT_RAINBOW_MOOD
-# define RGBLIGHT_EFFECT_STATIC_GRADIENT
-# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
-# define RGBLIGHT_EFFECT_BREATHING
-# 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
# define OLED_DISPLAY_128X64
# define OLED_TIMEOUT 30000
diff --git a/keyboards/avalanche/v4/info.json b/keyboards/avalanche/v4/info.json
index 235bb12220..7bb047466b 100644
--- a/keyboards/avalanche/v4/info.json
+++ b/keyboards/avalanche/v4/info.json
@@ -25,7 +25,22 @@
"pin": "D3"
},
"rgblight": {
- "max_brightness": 100
+ "hue_steps": 10,
+ "led_count": 64,
+ "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],
+ "animations": {
+ "breathing": true,
+ "rainbow_mood": true,
+ "rainbow_swirl": true,
+ "snake": true,
+ "knight": true,
+ "christmas": true,
+ "static_gradient": true,
+ "rgb_test": true,
+ "alternating": true
+ }
},
"processor": "atmega32u4",
"bootloader": "caterina",
diff --git a/keyboards/avalanche/v4/rules.mk b/keyboards/avalanche/v4/rules.mk
index da4886f7d7..513c25d04d 100644
--- a/keyboards/avalanche/v4/rules.mk
+++ b/keyboards/avalanche/v4/rules.mk
@@ -12,6 +12,5 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = yes
OLED_ENABLE = yes
-OLED_DRIVER = SSD1306
SPLIT_KEYBOARD = yes