summaryrefslogtreecommitdiff
path: root/keyboards/hadron
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-08-24 07:11:39 +1000
committerGitHub <noreply@github.com>2023-08-23 22:11:39 +0100
commit023d644bb69748d97feb49091e2c24f3fcd3da11 (patch)
tree1f8039d1fdf8408487eb5db0bee542e6f7d08af3 /keyboards/hadron
parent79491e35e1c2abd30620dec21d6073515065cc1a (diff)
Move RGBLight animations to data driven (#21635)
* Move RGBLight animations to data driven, 0-9 * Move RGBLight animations to data driven, A * Move RGBLight animations to data driven, B * Move RGBLight animations to data driven, C * Move RGBLight animations to data driven, D * Move RGBLight animations to data driven, E * Move RGBLight animations to data driven, F * Move RGBLight animations to data driven, G * Move RGBLight animations to data driven, H * Move RGBLight animations to data driven, handwired * Move RGBLight animations to data driven, I * Move RGBLight animations to data driven, J * Move RGBLight animations to data driven, K * Move RGBLight animations to data driven, L * Move RGBLight animations to data driven, M * Move RGBLight animations to data driven, N * Move RGBLight animations to data driven, O * Move RGBLight animations to data driven, P * Move RGBLight animations to data driven, Q * Move RGBLight animations to data driven, R * Move RGBLight animations to data driven, S * Move RGBLight animations to data driven, T * Move RGBLight animations to data driven, U * Move RGBLight animations to data driven, V * Move RGBLight animations to data driven, W * Move RGBLight animations to data driven, X * Move RGBLight animations to data driven, Y * Move RGBLight animations to data driven, Z * Fix incorrect placement * Fix build failures and mismatches
Diffstat (limited to 'keyboards/hadron')
-rw-r--r--keyboards/hadron/ver2/config.h12
-rw-r--r--keyboards/hadron/ver2/info.json14
-rw-r--r--keyboards/hadron/ver3/config.h11
-rw-r--r--keyboards/hadron/ver3/info.json14
4 files changed, 26 insertions, 25 deletions
diff --git a/keyboards/hadron/ver2/config.h b/keyboards/hadron/ver2/config.h
index 85a236184d..ca2798c907 100644
--- a/keyboards/hadron/ver2/config.h
+++ b/keyboards/hadron/ver2/config.h
@@ -18,15 +18,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19// configure oled driver for the 128x32 oled 19// configure oled driver for the 128x32 oled
20#define OLED_UPDATE_INTERVAL 33 // ~30fps 20#define OLED_UPDATE_INTERVAL 33 // ~30fps
21
22/* ws2812 RGB LED*/
23#define RGBLIGHT_EFFECT_BREATHING
24#define RGBLIGHT_EFFECT_RAINBOW_MOOD
25#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
26#define RGBLIGHT_EFFECT_SNAKE
27#define RGBLIGHT_EFFECT_KNIGHT
28#define RGBLIGHT_EFFECT_CHRISTMAS
29#define RGBLIGHT_EFFECT_STATIC_GRADIENT
30#define RGBLIGHT_EFFECT_RGB_TEST
31#define RGBLIGHT_EFFECT_ALTERNATING
32#define RGBLIGHT_EFFECT_TWINKLE
diff --git a/keyboards/hadron/ver2/info.json b/keyboards/hadron/ver2/info.json
index ad56f5c9ab..fb1dc102b7 100644
--- a/keyboards/hadron/ver2/info.json
+++ b/keyboards/hadron/ver2/info.json
@@ -9,7 +9,19 @@
9 "diode_direction": "COL2ROW", 9 "diode_direction": "COL2ROW",
10 "rgblight": { 10 "rgblight": {
11 "hue_steps": 10, 11 "hue_steps": 10,
12 "led_count": 14 12 "led_count": 14,
13 "animations": {
14 "breathing": true,
15 "rainbow_mood": true,
16 "rainbow_swirl": true,
17 "snake": true,
18 "knight": true,
19 "christmas": true,
20 "static_gradient": true,
21 "rgb_test": true,
22 "alternating": true,
23 "twinkle": true
24 }
13 }, 25 },
14 "ws2812": { 26 "ws2812": {
15 "pin": "D4" 27 "pin": "D4"
diff --git a/keyboards/hadron/ver3/config.h b/keyboards/hadron/ver3/config.h
index 2c5bdfcaa8..c9fc1028f8 100644
--- a/keyboards/hadron/ver3/config.h
+++ b/keyboards/hadron/ver3/config.h
@@ -107,17 +107,6 @@
107#define DRV2605L_ZC_DET_TIME 0 107#define DRV2605L_ZC_DET_TIME 0
108#define DRV2605L_AUTO_CAL_TIME 3 108#define DRV2605L_AUTO_CAL_TIME 3
109 109
110#define RGBLIGHT_EFFECT_BREATHING
111#define RGBLIGHT_EFFECT_RAINBOW_MOOD
112#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
113#define RGBLIGHT_EFFECT_SNAKE
114#define RGBLIGHT_EFFECT_KNIGHT
115#define RGBLIGHT_EFFECT_CHRISTMAS
116#define RGBLIGHT_EFFECT_STATIC_GRADIENT
117#define RGBLIGHT_EFFECT_RGB_TEST
118#define RGBLIGHT_EFFECT_ALTERNATING
119#define RGBLIGHT_EFFECT_TWINKLE
120
121#define RGB_MATRIX_LED_COUNT 10 110#define RGB_MATRIX_LED_COUNT 10
122 111
123// #define RGB_MATRIX_KEYPRESSES 112// #define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/hadron/ver3/info.json b/keyboards/hadron/ver3/info.json
index 45e92cbc71..381a5dc550 100644
--- a/keyboards/hadron/ver3/info.json
+++ b/keyboards/hadron/ver3/info.json
@@ -16,7 +16,19 @@
16 ] 16 ]
17 }, 17 },
18 "rgblight": { 18 "rgblight": {
19 "led_count": 10 19 "led_count": 10,
20 "animations": {
21 "breathing": true,
22 "rainbow_mood": true,
23 "rainbow_swirl": true,
24 "snake": true,
25 "knight": true,
26 "christmas": true,
27 "static_gradient": true,
28 "rgb_test": true,
29 "alternating": true,
30 "twinkle": true
31 }
20 }, 32 },
21 "ws2812": { 33 "ws2812": {
22 "pin": "B5" 34 "pin": "B5"