diff options
author | Alexander <7888825+keyzog@users.noreply.github.com> | 2022-02-21 22:21:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 11:21:54 -0800 |
commit | 239fed2ef1f41d8d2c962e8519de39fff5ce44ac (patch) | |
tree | 3c3946336f8b5d87f47ec5b35f69ecb66e88bbf5 | |
parent | 31f590066646b0be76d3ba9bb1b38174b46d507f (diff) | |
download | qmk_firmware-239fed2ef1f41d8d2c962e8519de39fff5ce44ac.tar.gz qmk_firmware-239fed2ef1f41d8d2c962e8519de39fff5ce44ac.zip |
[Keyboard] Move rgb animation defines for KAPL keyboard (#16341)
-rw-r--r-- | keyboards/kapl/keymaps/default/config.h | 42 | ||||
-rw-r--r-- | keyboards/kapl/keymaps/via/config.h | 42 | ||||
-rw-r--r-- | keyboards/kapl/rev1/config.h | 44 |
3 files changed, 44 insertions, 84 deletions
diff --git a/keyboards/kapl/keymaps/default/config.h b/keyboards/kapl/keymaps/default/config.h index 788c3b41b..cc8270519 100644 --- a/keyboards/kapl/keymaps/default/config.h +++ b/keyboards/kapl/keymaps/default/config.h | |||
@@ -1,45 +1,3 @@ | |||
1 | // Copyright 2022 Alexander Lozyuk (@keyzog) | 1 | // Copyright 2022 Alexander Lozyuk (@keyzog) |
2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
3 | #pragma once | 3 | #pragma once |
4 | |||
5 | #ifdef RGBLIGHT_ENABLE | ||
6 | #define RGBLIGHT_EFFECT_BREATHING | ||
7 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
8 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
9 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
10 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
11 | #define RGBLIGHT_EFFECT_TWINKLE | ||
12 | #define RGBLIGHT_HUE_STEP 8 | ||
13 | #define RGBLIGHT_SAT_STEP 16 | ||
14 | #define RGBLIGHT_VAL_STEP 16 | ||
15 | #endif | ||
16 | |||
17 | #ifdef RGB_MATRIX_ENABLE | ||
18 | #define RGB_MATRIX_HUE_STEP 8 | ||
19 | #define RGB_MATRIX_SAT_STEP 16 | ||
20 | #define RGB_MATRIX_VAL_STEP 16 | ||
21 | #define RGB_MATRIX_SPD_STEP 10 | ||
22 | // EFFECTS | ||
23 | #define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
24 | #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
25 | #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
26 | #define ENABLE_RGB_MATRIX_BREATHING | ||
27 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
28 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
29 | #define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
30 | #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
31 | #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
32 | #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
33 | #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
34 | #define ENABLE_RGB_MATRIX_HUE_BREATHING | ||
35 | #define ENABLE_RGB_MATRIX_HUE_WAVE | ||
36 | // KEYPRESSES EFFECTS | ||
37 | #define RGB_MATRIX_KEYPRESSES | ||
38 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
39 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
40 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
41 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
42 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
43 | #define ENABLE_RGB_MATRIX_MULTISPLASH | ||
44 | #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
45 | #endif | ||
diff --git a/keyboards/kapl/keymaps/via/config.h b/keyboards/kapl/keymaps/via/config.h index 788c3b41b..cc8270519 100644 --- a/keyboards/kapl/keymaps/via/config.h +++ b/keyboards/kapl/keymaps/via/config.h | |||
@@ -1,45 +1,3 @@ | |||
1 | // Copyright 2022 Alexander Lozyuk (@keyzog) | 1 | // Copyright 2022 Alexander Lozyuk (@keyzog) |
2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
3 | #pragma once | 3 | #pragma once |
4 | |||
5 | #ifdef RGBLIGHT_ENABLE | ||
6 | #define RGBLIGHT_EFFECT_BREATHING | ||
7 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
8 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
9 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
10 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
11 | #define RGBLIGHT_EFFECT_TWINKLE | ||
12 | #define RGBLIGHT_HUE_STEP 8 | ||
13 | #define RGBLIGHT_SAT_STEP 16 | ||
14 | #define RGBLIGHT_VAL_STEP 16 | ||
15 | #endif | ||
16 | |||
17 | #ifdef RGB_MATRIX_ENABLE | ||
18 | #define RGB_MATRIX_HUE_STEP 8 | ||
19 | #define RGB_MATRIX_SAT_STEP 16 | ||
20 | #define RGB_MATRIX_VAL_STEP 16 | ||
21 | #define RGB_MATRIX_SPD_STEP 10 | ||
22 | // EFFECTS | ||
23 | #define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
24 | #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
25 | #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
26 | #define ENABLE_RGB_MATRIX_BREATHING | ||
27 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
28 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
29 | #define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
30 | #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
31 | #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
32 | #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
33 | #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
34 | #define ENABLE_RGB_MATRIX_HUE_BREATHING | ||
35 | #define ENABLE_RGB_MATRIX_HUE_WAVE | ||
36 | // KEYPRESSES EFFECTS | ||
37 | #define RGB_MATRIX_KEYPRESSES | ||
38 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
39 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
40 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
41 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
42 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
43 | #define ENABLE_RGB_MATRIX_MULTISPLASH | ||
44 | #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
45 | #endif | ||
diff --git a/keyboards/kapl/rev1/config.h b/keyboards/kapl/rev1/config.h index 12007a3a1..498445927 100644 --- a/keyboards/kapl/rev1/config.h +++ b/keyboards/kapl/rev1/config.h | |||
@@ -35,6 +35,7 @@ | |||
35 | /* Select hand configuration */ | 35 | /* Select hand configuration */ |
36 | #define MASTER_LEFT | 36 | #define MASTER_LEFT |
37 | 37 | ||
38 | |||
38 | #define RGB_DI_PIN D4 | 39 | #define RGB_DI_PIN D4 |
39 | #define RGBLED_NUM 88 | 40 | #define RGBLED_NUM 88 |
40 | #define RGBLED_SPLIT { 44, 44 } | 41 | #define RGBLED_SPLIT { 44, 44 } |
@@ -46,6 +47,49 @@ | |||
46 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. | 47 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash. |
47 | #define SPLIT_TRANSPORT_MIRROR | 48 | #define SPLIT_TRANSPORT_MIRROR |
48 | 49 | ||
50 | #ifdef RGBLIGHT_ENABLE | ||
51 | #define RGBLIGHT_HUE_STEP 8 | ||
52 | #define RGBLIGHT_SAT_STEP 16 | ||
53 | #define RGBLIGHT_VAL_STEP 16 | ||
54 | #define RGBLIGHT_EFFECT_BREATHING | ||
55 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
56 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
57 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
58 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
59 | #define RGBLIGHT_EFFECT_TWINKLE | ||
60 | #endif | ||
61 | |||
62 | #ifdef RGB_MATRIX_ENABLE | ||
63 | #define RGB_MATRIX_HUE_STEP 8 | ||
64 | #define RGB_MATRIX_SAT_STEP 16 | ||
65 | #define RGB_MATRIX_VAL_STEP 16 | ||
66 | #define RGB_MATRIX_SPD_STEP 10 | ||
67 | // EFFECTS | ||
68 | #define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
69 | #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
70 | #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
71 | #define ENABLE_RGB_MATRIX_BREATHING | ||
72 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
73 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
74 | #define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
75 | #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
76 | #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
77 | #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
78 | #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
79 | #define ENABLE_RGB_MATRIX_HUE_BREATHING | ||
80 | #define ENABLE_RGB_MATRIX_HUE_WAVE | ||
81 | // KEYPRESSES EFFECTS | ||
82 | #define RGB_MATRIX_KEYPRESSES | ||
83 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
84 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
85 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
86 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
87 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
88 | #define ENABLE_RGB_MATRIX_MULTISPLASH | ||
89 | #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
90 | #endif | ||
91 | |||
92 | |||
49 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | 93 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ |
50 | #define LOCKING_SUPPORT_ENABLE | 94 | #define LOCKING_SUPPORT_ENABLE |
51 | /* Locking resynchronize hack */ | 95 | /* Locking resynchronize hack */ |