diff options
author | Drashna Jaelre <drashna@live.com> | 2021-11-15 10:41:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-15 10:41:04 -0800 |
commit | 160b0558f55f1357e1a48175c949e98d32630e6b (patch) | |
tree | 459e163bfda5c90a615dada0d282891795cb7d42 /quantum | |
parent | c9fd69871165eb889be5421df518d8e35b2be027 (diff) | |
download | qmk_firmware-160b0558f55f1357e1a48175c949e98d32630e6b.tar.gz qmk_firmware-160b0558f55f1357e1a48175c949e98d32630e6b.zip |
Require explicit enabling of RGB Matrix modes (#15018)
Diffstat (limited to 'quantum')
53 files changed, 81 insertions, 318 deletions
diff --git a/quantum/led_matrix/animations/alpha_mods_anim.h b/quantum/led_matrix/animations/alpha_mods_anim.h index c82b2aa38..4d017894a 100644 --- a/quantum/led_matrix/animations/alpha_mods_anim.h +++ b/quantum/led_matrix/animations/alpha_mods_anim.h | |||
@@ -21,4 +21,4 @@ bool ALPHAS_MODS(effect_params_t* params) { | |||
21 | } | 21 | } |
22 | 22 | ||
23 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 23 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
24 | #endif // DISABLE_LED_MATRIX_ALPHAS_MODS | 24 | #endif // ENABLE_LED_MATRIX_ALPHAS_MODS |
diff --git a/quantum/led_matrix/animations/band_anim.h b/quantum/led_matrix/animations/band_anim.h index 5548787b8..293be4f67 100644 --- a/quantum/led_matrix/animations/band_anim.h +++ b/quantum/led_matrix/animations/band_anim.h | |||
@@ -10,4 +10,4 @@ static uint8_t BAND_math(uint8_t val, uint8_t i, uint8_t time) { | |||
10 | bool BAND(effect_params_t* params) { return effect_runner_i(params, &BAND_math); } | 10 | bool BAND(effect_params_t* params) { return effect_runner_i(params, &BAND_math); } |
11 | 11 | ||
12 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_LED_MATRIX_BAND | 13 | #endif // ENABLE_LED_MATRIX_BAND |
diff --git a/quantum/led_matrix/animations/band_pinwheel_anim.h b/quantum/led_matrix/animations/band_pinwheel_anim.h index 89651582d..f47a3869c 100644 --- a/quantum/led_matrix/animations/band_pinwheel_anim.h +++ b/quantum/led_matrix/animations/band_pinwheel_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t BAND_PINWHEEL_math(uint8_t val, int16_t dx, int16_t dy, uint8_t t | |||
7 | bool BAND_PINWHEEL(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_math); } | 7 | bool BAND_PINWHEEL(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_BAND_PINWHEEL | 10 | #endif // ENABLE_LED_MATRIX_BAND_PINWHEEL |
diff --git a/quantum/led_matrix/animations/band_spiral_anim.h b/quantum/led_matrix/animations/band_spiral_anim.h index 70b0ffaea..a4bd38218 100644 --- a/quantum/led_matrix/animations/band_spiral_anim.h +++ b/quantum/led_matrix/animations/band_spiral_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t BAND_SPIRAL_math(uint8_t val, int16_t dx, int16_t dy, uint8_t dis | |||
7 | bool BAND_SPIRAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_math); } | 7 | bool BAND_SPIRAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_BAND_SPIRAL | 10 | #endif // ENABLE_LED_MATRIX_BAND_SPIRAL |
diff --git a/quantum/led_matrix/animations/breathing_anim.h b/quantum/led_matrix/animations/breathing_anim.h index d9cc2de23..899925f51 100644 --- a/quantum/led_matrix/animations/breathing_anim.h +++ b/quantum/led_matrix/animations/breathing_anim.h | |||
@@ -16,4 +16,4 @@ bool BREATHING(effect_params_t* params) { | |||
16 | } | 16 | } |
17 | 17 | ||
18 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 18 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
19 | #endif // DISABLE_LED_MATRIX_BREATHING | 19 | #endif // ENABLE_LED_MATRIX_BREATHING |
diff --git a/quantum/led_matrix/animations/cycle_left_right_anim.h b/quantum/led_matrix/animations/cycle_left_right_anim.h index 769e6d794..1a8999b83 100644 --- a/quantum/led_matrix/animations/cycle_left_right_anim.h +++ b/quantum/led_matrix/animations/cycle_left_right_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t CYCLE_LEFT_RIGHT_math(uint8_t val, uint8_t i, uint8_t time) { ret | |||
7 | bool CYCLE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &CYCLE_LEFT_RIGHT_math); } | 7 | bool CYCLE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &CYCLE_LEFT_RIGHT_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_CYCLE_LEFT_RIGHT | 10 | #endif // ENABLE_LED_MATRIX_CYCLE_LEFT_RIGHT |
diff --git a/quantum/led_matrix/animations/cycle_out_in_anim.h b/quantum/led_matrix/animations/cycle_out_in_anim.h index 6adf9c25f..77d3a14b6 100644 --- a/quantum/led_matrix/animations/cycle_out_in_anim.h +++ b/quantum/led_matrix/animations/cycle_out_in_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t CYCLE_OUT_IN_math(uint8_t val, int16_t dx, int16_t dy, uint8_t di | |||
7 | bool CYCLE_OUT_IN(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_OUT_IN_math); } | 7 | bool CYCLE_OUT_IN(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_OUT_IN_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_CYCLE_OUT_IN | 10 | #endif // ENABLE_LED_MATRIX_CYCLE_OUT_IN |
diff --git a/quantum/led_matrix/animations/cycle_up_down_anim.h b/quantum/led_matrix/animations/cycle_up_down_anim.h index 7a5868ac2..b25947199 100644 --- a/quantum/led_matrix/animations/cycle_up_down_anim.h +++ b/quantum/led_matrix/animations/cycle_up_down_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t CYCLE_UP_DOWN_math(uint8_t val, uint8_t i, uint8_t time) { return | |||
7 | bool CYCLE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &CYCLE_UP_DOWN_math); } | 7 | bool CYCLE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &CYCLE_UP_DOWN_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_CYCLE_UP_DOWN | 10 | #endif // ENABLE_LED_MATRIX_CYCLE_UP_DOWN |
diff --git a/quantum/led_matrix/animations/dual_beacon_anim.h b/quantum/led_matrix/animations/dual_beacon_anim.h index 3552c9fc3..81735e323 100644 --- a/quantum/led_matrix/animations/dual_beacon_anim.h +++ b/quantum/led_matrix/animations/dual_beacon_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t DUAL_BEACON_math(uint8_t val, int8_t sin, int8_t cos, uint8_t i, | |||
7 | bool DUAL_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &DUAL_BEACON_math); } | 7 | bool DUAL_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &DUAL_BEACON_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_DUAL_BEACON | 10 | #endif // ENABLE_LED_MATRIX_DUAL_BEACON |
diff --git a/quantum/led_matrix/animations/solid_reactive_cross.h b/quantum/led_matrix/animations/solid_reactive_cross.h index 3a3c46be1..a149e9a92 100644 --- a/quantum/led_matrix/animations/solid_reactive_cross.h +++ b/quantum/led_matrix/animations/solid_reactive_cross.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_CROSS) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS) | 2 | # if defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS) || defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS) |
3 | 3 | ||
4 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS | 4 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS |
5 | LED_MATRIX_EFFECT(SOLID_REACTIVE_CROSS) | 5 | LED_MATRIX_EFFECT(SOLID_REACTIVE_CROSS) |
@@ -31,5 +31,5 @@ bool SOLID_REACTIVE_MULTICROSS(effect_params_t* params) { return effect_runner_r | |||
31 | # endif | 31 | # endif |
32 | 32 | ||
33 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 33 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
34 | # endif // !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_CROSS) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS) | 34 | # endif // defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS) || defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS) |
35 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 35 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/led_matrix/animations/solid_reactive_nexus.h b/quantum/led_matrix/animations/solid_reactive_nexus.h index 2520b8e1d..5a86e48c6 100644 --- a/quantum/led_matrix/animations/solid_reactive_nexus.h +++ b/quantum/led_matrix/animations/solid_reactive_nexus.h | |||
@@ -28,5 +28,5 @@ bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_r | |||
28 | # endif | 28 | # endif |
29 | 29 | ||
30 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 30 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
31 | # endif // !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS) | 31 | # endif // defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS) || defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS) |
32 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 32 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/led_matrix/animations/solid_reactive_simple_anim.h b/quantum/led_matrix/animations/solid_reactive_simple_anim.h index 43f6ad9ab..14f5e9073 100644 --- a/quantum/led_matrix/animations/solid_reactive_simple_anim.h +++ b/quantum/led_matrix/animations/solid_reactive_simple_anim.h | |||
@@ -8,5 +8,5 @@ static uint8_t SOLID_REACTIVE_SIMPLE_math(uint8_t val, uint16_t offset) { return | |||
8 | bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); } | 8 | bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); } |
9 | 9 | ||
10 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 10 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
11 | # endif // DISABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE | 11 | # endif // ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE |
12 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 12 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/led_matrix/animations/solid_reactive_wide.h b/quantum/led_matrix/animations/solid_reactive_wide.h index d683b0251..3aa88063a 100644 --- a/quantum/led_matrix/animations/solid_reactive_wide.h +++ b/quantum/led_matrix/animations/solid_reactive_wide.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 2 | # if !defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE) || defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
3 | 3 | ||
4 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE | 4 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE |
5 | LED_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) | 5 | LED_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) |
@@ -26,5 +26,5 @@ bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { return effect_runner_re | |||
26 | # endif | 26 | # endif |
27 | 27 | ||
28 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 28 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
29 | # endif // !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 29 | # endif // !defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE) || !defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
30 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 30 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/led_matrix/animations/solid_splash_anim.h b/quantum/led_matrix/animations/solid_splash_anim.h index cf599c8fe..17b692a09 100644 --- a/quantum/led_matrix/animations/solid_splash_anim.h +++ b/quantum/led_matrix/animations/solid_splash_anim.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_LED_MATRIX_SOLID_SPLASH) || !defined(DISABLE_LED_MATRIX_SOLID_MULTISPLASH) | 2 | # if defined(ENABLE_LED_MATRIX_SOLID_SPLASH) || defined(ENABLE_LED_MATRIX_SOLID_MULTISPLASH) |
3 | 3 | ||
4 | # ifdef ENABLE_LED_MATRIX_SOLID_SPLASH | 4 | # ifdef ENABLE_LED_MATRIX_SOLID_SPLASH |
5 | LED_MATRIX_EFFECT(SOLID_SPLASH) | 5 | LED_MATRIX_EFFECT(SOLID_SPLASH) |
@@ -26,5 +26,5 @@ bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_ | |||
26 | # endif | 26 | # endif |
27 | 27 | ||
28 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 28 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
29 | # endif // !defined(DISABLE_LED_MATRIX_SPLASH) && !defined(DISABLE_LED_MATRIX_MULTISPLASH) | 29 | # endif // defined(ENABLE_LED_MATRIX_SPLASH) || defined(ENABLE_LED_MATRIX_MULTISPLASH) |
30 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 30 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/led_matrix/animations/wave_left_right_anim.h b/quantum/led_matrix/animations/wave_left_right_anim.h index c062cf968..76487f851 100644 --- a/quantum/led_matrix/animations/wave_left_right_anim.h +++ b/quantum/led_matrix/animations/wave_left_right_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t WAVE_LEFT_RIGHT_math(uint8_t val, uint8_t i, uint8_t time) { retu | |||
7 | bool WAVE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &WAVE_LEFT_RIGHT_math); } | 7 | bool WAVE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &WAVE_LEFT_RIGHT_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_WAVE_LEFT_RIGHT | 10 | #endif // ENABLE_LED_MATRIX_WAVE_LEFT_RIGHT |
diff --git a/quantum/led_matrix/animations/wave_up_down_anim.h b/quantum/led_matrix/animations/wave_up_down_anim.h index 5e612f6b6..94710f5c6 100644 --- a/quantum/led_matrix/animations/wave_up_down_anim.h +++ b/quantum/led_matrix/animations/wave_up_down_anim.h | |||
@@ -7,4 +7,4 @@ static uint8_t WAVE_UP_DOWN_math(uint8_t val, uint8_t i, uint8_t time) { return | |||
7 | bool WAVE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &WAVE_UP_DOWN_math); } | 7 | bool WAVE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &WAVE_UP_DOWN_math); } |
8 | 8 | ||
9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS | 9 | # endif // LED_MATRIX_CUSTOM_EFFECT_IMPLS |
10 | #endif // DISABLE_LED_MATRIX_WAVE_UP_DOWN | 10 | #endif // ENABLE_LED_MATRIX_WAVE_UP_DOWN |
diff --git a/quantum/led_matrix/led_matrix.c b/quantum/led_matrix/led_matrix.c index 8d6a56f27..be1494e88 100644 --- a/quantum/led_matrix/led_matrix.c +++ b/quantum/led_matrix/led_matrix.c | |||
@@ -213,11 +213,11 @@ void process_led_matrix(uint8_t row, uint8_t col, bool pressed) { | |||
213 | } | 213 | } |
214 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED | 214 | #endif // LED_MATRIX_KEYREACTIVE_ENABLED |
215 | 215 | ||
216 | #if defined(LED_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_LED_MATRIX_TYPING_HEATMAP) | 216 | #if defined(LED_MATRIX_FRAMEBUFFER_EFFECTS) && defined(ENABLE_LED_MATRIX_TYPING_HEATMAP) |
217 | if (led_matrix_eeconfig.mode == LED_MATRIX_TYPING_HEATMAP) { | 217 | if (led_matrix_eeconfig.mode == LED_MATRIX_TYPING_HEATMAP) { |
218 | process_led_matrix_typing_heatmap(row, col); | 218 | process_led_matrix_typing_heatmap(row, col); |
219 | } | 219 | } |
220 | #endif // defined(LED_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_LED_MATRIX_TYPING_HEATMAP) | 220 | #endif // defined(LED_MATRIX_FRAMEBUFFER_EFFECTS) && defined(ENABLE_LED_MATRIX_TYPING_HEATMAP) |
221 | } | 221 | } |
222 | 222 | ||
223 | static bool led_matrix_none(effect_params_t *params) { | 223 | static bool led_matrix_none(effect_params_t *params) { |
diff --git a/quantum/led_matrix/led_matrix.h b/quantum/led_matrix/led_matrix.h index 538674443..e42be6466 100644 --- a/quantum/led_matrix/led_matrix.h +++ b/quantum/led_matrix/led_matrix.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <stdbool.h> | 23 | #include <stdbool.h> |
24 | #include "led_matrix_types.h" | 24 | #include "led_matrix_types.h" |
25 | #include "quantum.h" | 25 | #include "quantum.h" |
26 | #include "led_matrix_legacy_enables.h" | ||
27 | 26 | ||
28 | #ifdef IS31FL3731 | 27 | #ifdef IS31FL3731 |
29 | # include "is31fl3731-simple.h" | 28 | # include "is31fl3731-simple.h" |
diff --git a/quantum/led_matrix/led_matrix_legacy_enables.h b/quantum/led_matrix/led_matrix_legacy_enables.h deleted file mode 100644 index 7738d2f34..000000000 --- a/quantum/led_matrix/led_matrix_legacy_enables.h +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | /* Copyright 2021 QMK | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | // to-do: remove this | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #ifndef DISABLE_LED_MATRIX_ALPHAS_MODS | ||
22 | # define ENABLE_LED_MATRIX_ALPHAS_MODS | ||
23 | #endif | ||
24 | #ifndef DISABLE_LED_MATRIX_BREATHING | ||
25 | # define ENABLE_LED_MATRIX_BREATHING | ||
26 | #endif | ||
27 | #ifndef DISABLE_LED_MATRIX_BAND | ||
28 | # define ENABLE_LED_MATRIX_BAND | ||
29 | #endif | ||
30 | #ifndef DISABLE_LED_MATRIX_BAND_PINWHEEL | ||
31 | # define ENABLE_LED_MATRIX_BAND_PINWHEEL | ||
32 | #endif | ||
33 | #ifndef DISABLE_LED_MATRIX_BAND_SPIRAL | ||
34 | # define ENABLE_LED_MATRIX_BAND_SPIRAL | ||
35 | #endif | ||
36 | #ifndef DISABLE_LED_MATRIX_CYCLE_LEFT_RIGHT | ||
37 | # define ENABLE_LED_MATRIX_CYCLE_LEFT_RIGHT | ||
38 | #endif | ||
39 | #ifndef DISABLE_LED_MATRIX_CYCLE_UP_DOWN | ||
40 | # define ENABLE_LED_MATRIX_CYCLE_UP_DOWN | ||
41 | #endif | ||
42 | #ifndef DISABLE_LED_MATRIX_CYCLE_OUT_IN | ||
43 | # define ENABLE_LED_MATRIX_CYCLE_OUT_IN | ||
44 | #endif | ||
45 | #ifndef DISABLE_LED_MATRIX_DUAL_BEACON | ||
46 | # define ENABLE_LED_MATRIX_DUAL_BEACON | ||
47 | #endif | ||
48 | #if defined(LED_MATRIX_KEYREACTIVE_ENABLED) | ||
49 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE | ||
50 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE | ||
51 | # endif | ||
52 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE | ||
53 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE | ||
54 | # endif | ||
55 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
56 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
57 | # endif | ||
58 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_CROSS | ||
59 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS | ||
60 | # endif | ||
61 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
62 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
63 | # endif | ||
64 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS | ||
65 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS | ||
66 | # endif | ||
67 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
68 | # define ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
69 | # endif | ||
70 | # ifndef DISABLE_LED_MATRIX_SPLASH | ||
71 | # define ENABLE_LED_MATRIX_SPLASH | ||
72 | # endif | ||
73 | # ifndef DISABLE_LED_MATRIX_MULTISPLASH | ||
74 | # define ENABLE_LED_MATRIX_MULTISPLASH | ||
75 | # endif | ||
76 | #endif | ||
77 | #ifndef DISABLE_LED_MATRIX_WAVE_LEFT_RIGHT | ||
78 | # define ENABLE_LED_MATRIX_WAVE_LEFT_RIGHT | ||
79 | #endif | ||
80 | #ifndef DISABLE_LED_MATRIX_WAVE_UP_DOWN | ||
81 | # define ENABLE_LED_MATRIX_WAVE_UP_DOWN | ||
82 | #endif | ||
diff --git a/quantum/rgb_matrix/animations/alpha_mods_anim.h b/quantum/rgb_matrix/animations/alpha_mods_anim.h index b8f507268..d6136f1ba 100644 --- a/quantum/rgb_matrix/animations/alpha_mods_anim.h +++ b/quantum/rgb_matrix/animations/alpha_mods_anim.h | |||
@@ -23,4 +23,4 @@ bool ALPHAS_MODS(effect_params_t* params) { | |||
23 | } | 23 | } |
24 | 24 | ||
25 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 25 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
26 | #endif // DISABLE_RGB_MATRIX_ALPHAS_MODS | 26 | #endif // ENABLE_RGB_MATRIX_ALPHAS_MODS |
diff --git a/quantum/rgb_matrix/animations/breathing_anim.h b/quantum/rgb_matrix/animations/breathing_anim.h index baac51ed1..29187e154 100644 --- a/quantum/rgb_matrix/animations/breathing_anim.h +++ b/quantum/rgb_matrix/animations/breathing_anim.h | |||
@@ -17,4 +17,4 @@ bool BREATHING(effect_params_t* params) { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 19 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
20 | #endif // DISABLE_RGB_MATRIX_BREATHING | 20 | #endif // ENABLE_RGB_MATRIX_BREATHING |
diff --git a/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h b/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h index ac9578922..0375d4937 100644 --- a/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h +++ b/quantum/rgb_matrix/animations/colorband_pinwheel_sat_anim.h | |||
@@ -10,4 +10,4 @@ static HSV BAND_PINWHEEL_SAT_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) | |||
10 | bool BAND_PINWHEEL_SAT(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_SAT_math); } | 10 | bool BAND_PINWHEEL_SAT(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_SAT_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | 13 | #endif // ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT |
diff --git a/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h b/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h index f7fe4b76e..e40bf4cd1 100644 --- a/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h +++ b/quantum/rgb_matrix/animations/colorband_pinwheel_val_anim.h | |||
@@ -10,4 +10,4 @@ static HSV BAND_PINWHEEL_VAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) | |||
10 | bool BAND_PINWHEEL_VAL(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_VAL_math); } | 10 | bool BAND_PINWHEEL_VAL(effect_params_t* params) { return effect_runner_dx_dy(params, &BAND_PINWHEEL_VAL_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | 13 | #endif // ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL |
diff --git a/quantum/rgb_matrix/animations/colorband_sat_anim.h b/quantum/rgb_matrix/animations/colorband_sat_anim.h index 96a6cbf5c..1c4f7de57 100644 --- a/quantum/rgb_matrix/animations/colorband_sat_anim.h +++ b/quantum/rgb_matrix/animations/colorband_sat_anim.h | |||
@@ -11,4 +11,4 @@ static HSV BAND_SAT_math(HSV hsv, uint8_t i, uint8_t time) { | |||
11 | bool BAND_SAT(effect_params_t* params) { return effect_runner_i(params, &BAND_SAT_math); } | 11 | bool BAND_SAT(effect_params_t* params) { return effect_runner_i(params, &BAND_SAT_math); } |
12 | 12 | ||
13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
14 | #endif // DISABLE_RGB_MATRIX_BAND_SAT | 14 | #endif // ENABLE_RGB_MATRIX_BAND_SAT |
diff --git a/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h b/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h index 52f6040d8..cdd02b379 100644 --- a/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h +++ b/quantum/rgb_matrix/animations/colorband_spiral_sat_anim.h | |||
@@ -10,4 +10,4 @@ static HSV BAND_SPIRAL_SAT_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, u | |||
10 | bool BAND_SPIRAL_SAT(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_SAT_math); } | 10 | bool BAND_SPIRAL_SAT(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_SAT_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | 13 | #endif // ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT |
diff --git a/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h b/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h index d5752e27f..e1331eaeb 100644 --- a/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h +++ b/quantum/rgb_matrix/animations/colorband_spiral_val_anim.h | |||
@@ -10,4 +10,4 @@ static HSV BAND_SPIRAL_VAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, u | |||
10 | bool BAND_SPIRAL_VAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_VAL_math); } | 10 | bool BAND_SPIRAL_VAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &BAND_SPIRAL_VAL_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL | 13 | #endif // ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL |
diff --git a/quantum/rgb_matrix/animations/colorband_val_anim.h b/quantum/rgb_matrix/animations/colorband_val_anim.h index 32bc6f52a..02ee4add6 100644 --- a/quantum/rgb_matrix/animations/colorband_val_anim.h +++ b/quantum/rgb_matrix/animations/colorband_val_anim.h | |||
@@ -11,4 +11,4 @@ static HSV BAND_VAL_math(HSV hsv, uint8_t i, uint8_t time) { | |||
11 | bool BAND_VAL(effect_params_t* params) { return effect_runner_i(params, &BAND_VAL_math); } | 11 | bool BAND_VAL(effect_params_t* params) { return effect_runner_i(params, &BAND_VAL_math); } |
12 | 12 | ||
13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
14 | #endif // DISABLE_RGB_MATRIX_BAND_VAL | 14 | #endif // ENABLE_RGB_MATRIX_BAND_VAL |
diff --git a/quantum/rgb_matrix/animations/cycle_all_anim.h b/quantum/rgb_matrix/animations/cycle_all_anim.h index 20af94b6b..3b73b9d38 100644 --- a/quantum/rgb_matrix/animations/cycle_all_anim.h +++ b/quantum/rgb_matrix/animations/cycle_all_anim.h | |||
@@ -10,4 +10,4 @@ static HSV CYCLE_ALL_math(HSV hsv, uint8_t i, uint8_t time) { | |||
10 | bool CYCLE_ALL(effect_params_t* params) { return effect_runner_i(params, &CYCLE_ALL_math); } | 10 | bool CYCLE_ALL(effect_params_t* params) { return effect_runner_i(params, &CYCLE_ALL_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_CYCLE_ALL | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_ALL |
diff --git a/quantum/rgb_matrix/animations/cycle_left_right_anim.h b/quantum/rgb_matrix/animations/cycle_left_right_anim.h index 7f84f4bd5..bf6a57406 100644 --- a/quantum/rgb_matrix/animations/cycle_left_right_anim.h +++ b/quantum/rgb_matrix/animations/cycle_left_right_anim.h | |||
@@ -10,4 +10,4 @@ static HSV CYCLE_LEFT_RIGHT_math(HSV hsv, uint8_t i, uint8_t time) { | |||
10 | bool CYCLE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &CYCLE_LEFT_RIGHT_math); } | 10 | bool CYCLE_LEFT_RIGHT(effect_params_t* params) { return effect_runner_i(params, &CYCLE_LEFT_RIGHT_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT |
diff --git a/quantum/rgb_matrix/animations/cycle_out_in_anim.h b/quantum/rgb_matrix/animations/cycle_out_in_anim.h index 2277f16a2..2bdb9d937 100644 --- a/quantum/rgb_matrix/animations/cycle_out_in_anim.h +++ b/quantum/rgb_matrix/animations/cycle_out_in_anim.h | |||
@@ -10,4 +10,4 @@ static HSV CYCLE_OUT_IN_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint | |||
10 | bool CYCLE_OUT_IN(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_OUT_IN_math); } | 10 | bool CYCLE_OUT_IN(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_OUT_IN_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_CYCLE_OUT_IN | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_OUT_IN |
diff --git a/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h b/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h index 981c0afd0..51979c44f 100644 --- a/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h +++ b/quantum/rgb_matrix/animations/cycle_out_in_dual_anim.h | |||
@@ -12,4 +12,4 @@ static HSV CYCLE_OUT_IN_DUAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) | |||
12 | bool CYCLE_OUT_IN_DUAL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_OUT_IN_DUAL_math); } | 12 | bool CYCLE_OUT_IN_DUAL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_OUT_IN_DUAL_math); } |
13 | 13 | ||
14 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 14 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
15 | #endif // DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | 15 | #endif // ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL |
diff --git a/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h b/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h index 1a7db4a4c..10ba2b7c2 100644 --- a/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h +++ b/quantum/rgb_matrix/animations/cycle_pinwheel_anim.h | |||
@@ -10,4 +10,4 @@ static HSV CYCLE_PINWHEEL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t time) { | |||
10 | bool CYCLE_PINWHEEL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_PINWHEEL_math); } | 10 | bool CYCLE_PINWHEEL(effect_params_t* params) { return effect_runner_dx_dy(params, &CYCLE_PINWHEEL_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_CYCLE_PINWHEEL | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_PINWHEEL |
diff --git a/quantum/rgb_matrix/animations/cycle_spiral_anim.h b/quantum/rgb_matrix/animations/cycle_spiral_anim.h index 245cdc237..482c7e7da 100644 --- a/quantum/rgb_matrix/animations/cycle_spiral_anim.h +++ b/quantum/rgb_matrix/animations/cycle_spiral_anim.h | |||
@@ -10,4 +10,4 @@ static HSV CYCLE_SPIRAL_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint | |||
10 | bool CYCLE_SPIRAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_SPIRAL_math); } | 10 | bool CYCLE_SPIRAL(effect_params_t* params) { return effect_runner_dx_dy_dist(params, &CYCLE_SPIRAL_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_CYCLE_SPIRAL | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_SPIRAL |
diff --git a/quantum/rgb_matrix/animations/cycle_up_down_anim.h b/quantum/rgb_matrix/animations/cycle_up_down_anim.h index c9b5a5413..277edccb2 100644 --- a/quantum/rgb_matrix/animations/cycle_up_down_anim.h +++ b/quantum/rgb_matrix/animations/cycle_up_down_anim.h | |||
@@ -10,4 +10,4 @@ static HSV CYCLE_UP_DOWN_math(HSV hsv, uint8_t i, uint8_t time) { | |||
10 | bool CYCLE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &CYCLE_UP_DOWN_math); } | 10 | bool CYCLE_UP_DOWN(effect_params_t* params) { return effect_runner_i(params, &CYCLE_UP_DOWN_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_CYCLE_UP_DOWN | 13 | #endif // ENABLE_RGB_MATRIX_CYCLE_UP_DOWN |
diff --git a/quantum/rgb_matrix/animations/digital_rain_anim.h b/quantum/rgb_matrix/animations/digital_rain_anim.h index 1de45f8e8..8ce8fd703 100644 --- a/quantum/rgb_matrix/animations/digital_rain_anim.h +++ b/quantum/rgb_matrix/animations/digital_rain_anim.h | |||
@@ -1,4 +1,4 @@ | |||
1 | #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_DIGITAL_RAIN) | 1 | #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && defined(ENABLE_RGB_MATRIX_DIGITAL_RAIN) |
2 | RGB_MATRIX_EFFECT(DIGITAL_RAIN) | 2 | RGB_MATRIX_EFFECT(DIGITAL_RAIN) |
3 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 3 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
4 | 4 | ||
@@ -72,4 +72,4 @@ bool DIGITAL_RAIN(effect_params_t* params) { | |||
72 | } | 72 | } |
73 | 73 | ||
74 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 74 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
75 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_DIGITAL_RAIN) | 75 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(ENABLE_RGB_MATRIX_DIGITAL_RAIN) |
diff --git a/quantum/rgb_matrix/animations/dual_beacon_anim.h b/quantum/rgb_matrix/animations/dual_beacon_anim.h index 5c06080a2..dbe9b3ecf 100644 --- a/quantum/rgb_matrix/animations/dual_beacon_anim.h +++ b/quantum/rgb_matrix/animations/dual_beacon_anim.h | |||
@@ -10,4 +10,4 @@ static HSV DUAL_BEACON_math(HSV hsv, int8_t sin, int8_t cos, uint8_t i, uint8_t | |||
10 | bool DUAL_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &DUAL_BEACON_math); } | 10 | bool DUAL_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &DUAL_BEACON_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_DUAL_BEACON | 13 | #endif // ENABLE_RGB_MATRIX_DUAL_BEACON |
diff --git a/quantum/rgb_matrix/animations/gradient_left_right_anim.h b/quantum/rgb_matrix/animations/gradient_left_right_anim.h index 8b13d4e48..8bb5e570b 100644 --- a/quantum/rgb_matrix/animations/gradient_left_right_anim.h +++ b/quantum/rgb_matrix/animations/gradient_left_right_anim.h | |||
@@ -19,4 +19,4 @@ bool GRADIENT_LEFT_RIGHT(effect_params_t* params) { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
22 | #endif // DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | 22 | #endif // ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT |
diff --git a/quantum/rgb_matrix/animations/gradient_up_down_anim.h b/quantum/rgb_matrix/animations/gradient_up_down_anim.h index 7431ddcd9..a5674583e 100644 --- a/quantum/rgb_matrix/animations/gradient_up_down_anim.h +++ b/quantum/rgb_matrix/animations/gradient_up_down_anim.h | |||
@@ -19,4 +19,4 @@ bool GRADIENT_UP_DOWN(effect_params_t* params) { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 21 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
22 | #endif // DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | 22 | #endif // ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN |
diff --git a/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h b/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h index d639ba9b6..3ffb57eb3 100644 --- a/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h +++ b/quantum/rgb_matrix/animations/jellybean_raindrops_anim.h | |||
@@ -26,4 +26,4 @@ bool JELLYBEAN_RAINDROPS(effect_params_t* params) { | |||
26 | } | 26 | } |
27 | 27 | ||
28 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 28 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
29 | #endif // DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | 29 | #endif // ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS |
diff --git a/quantum/rgb_matrix/animations/rainbow_beacon_anim.h b/quantum/rgb_matrix/animations/rainbow_beacon_anim.h index b54d997f6..cd529958d 100644 --- a/quantum/rgb_matrix/animations/rainbow_beacon_anim.h +++ b/quantum/rgb_matrix/animations/rainbow_beacon_anim.h | |||
@@ -10,4 +10,4 @@ static HSV RAINBOW_BEACON_math(HSV hsv, int8_t sin, int8_t cos, uint8_t i, uint8 | |||
10 | bool RAINBOW_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_BEACON_math); } | 10 | bool RAINBOW_BEACON(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_BEACON_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_RAINBOW_BEACON | 13 | #endif // ENABLE_RGB_MATRIX_RAINBOW_BEACON |
diff --git a/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h b/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h index 50db92201..2f3de64e9 100644 --- a/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h +++ b/quantum/rgb_matrix/animations/rainbow_moving_chevron_anim.h | |||
@@ -10,4 +10,4 @@ static HSV RAINBOW_MOVING_CHEVRON_math(HSV hsv, uint8_t i, uint8_t time) { | |||
10 | bool RAINBOW_MOVING_CHEVRON(effect_params_t* params) { return effect_runner_i(params, &RAINBOW_MOVING_CHEVRON_math); } | 10 | bool RAINBOW_MOVING_CHEVRON(effect_params_t* params) { return effect_runner_i(params, &RAINBOW_MOVING_CHEVRON_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | 13 | #endif // ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON |
diff --git a/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h b/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h index 3299f15df..dae2b5d19 100644 --- a/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h +++ b/quantum/rgb_matrix/animations/rainbow_pinwheels_anim.h | |||
@@ -10,4 +10,4 @@ static HSV RAINBOW_PINWHEELS_math(HSV hsv, int8_t sin, int8_t cos, uint8_t i, ui | |||
10 | bool RAINBOW_PINWHEELS(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_PINWHEELS_math); } | 10 | bool RAINBOW_PINWHEELS(effect_params_t* params) { return effect_runner_sin_cos_i(params, &RAINBOW_PINWHEELS_math); } |
11 | 11 | ||
12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 12 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
13 | #endif // DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS | 13 | #endif // ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS |
diff --git a/quantum/rgb_matrix/animations/raindrops_anim.h b/quantum/rgb_matrix/animations/raindrops_anim.h index fa61f9e0b..4b1b9dd9e 100644 --- a/quantum/rgb_matrix/animations/raindrops_anim.h +++ b/quantum/rgb_matrix/animations/raindrops_anim.h | |||
@@ -36,4 +36,4 @@ bool RAINDROPS(effect_params_t* params) { | |||
36 | } | 36 | } |
37 | 37 | ||
38 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 38 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
39 | #endif // DISABLE_RGB_MATRIX_RAINDROPS | 39 | #endif // ENABLE_RGB_MATRIX_RAINDROPS |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_anim.h b/quantum/rgb_matrix/animations/solid_reactive_anim.h index d45bb961b..360d05a67 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_anim.h +++ b/quantum/rgb_matrix/animations/solid_reactive_anim.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE | 2 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE |
3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE) | 3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE) |
4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
5 | 5 | ||
@@ -11,5 +11,5 @@ static HSV SOLID_REACTIVE_math(HSV hsv, uint16_t offset) { | |||
11 | bool SOLID_REACTIVE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_math); } | 11 | bool SOLID_REACTIVE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_math); } |
12 | 12 | ||
13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
14 | # endif // DISABLE_RGB_MATRIX_SOLID_REACTIVE | 14 | # endif // ENABLE_RGB_MATRIX_SOLID_REACTIVE |
15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_cross.h b/quantum/rgb_matrix/animations/solid_reactive_cross.h index f76c68e8c..496651f8a 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_cross.h +++ b/quantum/rgb_matrix/animations/solid_reactive_cross.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) |
3 | 3 | ||
4 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS |
5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_CROSS) | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_CROSS) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS |
9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTICROSS) | 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTICROSS) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -23,14 +23,14 @@ static HSV SOLID_REACTIVE_CROSS_math(HSV hsv, int16_t dx, int16_t dy, uint8_t di | |||
23 | return hsv; | 23 | return hsv; |
24 | } | 24 | } |
25 | 25 | ||
26 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | 26 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS |
27 | bool SOLID_REACTIVE_CROSS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_CROSS_math); } | 27 | bool SOLID_REACTIVE_CROSS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_CROSS_math); } |
28 | # endif | 28 | # endif |
29 | 29 | ||
30 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | 30 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS |
31 | bool SOLID_REACTIVE_MULTICROSS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_CROSS_math); } | 31 | bool SOLID_REACTIVE_MULTICROSS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_CROSS_math); } |
32 | # endif | 32 | # endif |
33 | 33 | ||
34 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 34 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
35 | # endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) | 35 | # endif // !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS) |
36 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 36 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_nexus.h b/quantum/rgb_matrix/animations/solid_reactive_nexus.h index 17f94e3c1..3562e74a7 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_nexus.h +++ b/quantum/rgb_matrix/animations/solid_reactive_nexus.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) |
3 | 3 | ||
4 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS |
5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_NEXUS) | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_NEXUS) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS |
9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTINEXUS) | 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTINEXUS) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -21,14 +21,14 @@ static HSV SOLID_REACTIVE_NEXUS_math(HSV hsv, int16_t dx, int16_t dy, uint8_t di | |||
21 | return hsv; | 21 | return hsv; |
22 | } | 22 | } |
23 | 23 | ||
24 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | 24 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS |
25 | bool SOLID_REACTIVE_NEXUS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_NEXUS_math); } | 25 | bool SOLID_REACTIVE_NEXUS(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_NEXUS_math); } |
26 | # endif | 26 | # endif |
27 | 27 | ||
28 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | 28 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS |
29 | bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_NEXUS_math); } | 29 | bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_NEXUS_math); } |
30 | # endif | 30 | # endif |
31 | 31 | ||
32 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 32 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
33 | # endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) | 33 | # endif // !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS) |
34 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 34 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h b/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h index 12eb248cc..69189f636 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h +++ b/quantum/rgb_matrix/animations/solid_reactive_simple_anim.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 2 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE) | 3 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_SIMPLE) |
4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 4 | # ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
5 | 5 | ||
@@ -11,5 +11,5 @@ static HSV SOLID_REACTIVE_SIMPLE_math(HSV hsv, uint16_t offset) { | |||
11 | bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); } | 11 | bool SOLID_REACTIVE_SIMPLE(effect_params_t* params) { return effect_runner_reactive(params, &SOLID_REACTIVE_SIMPLE_math); } |
12 | 12 | ||
13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 13 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
14 | # endif // DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | 14 | # endif // ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE |
15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 15 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_reactive_wide.h b/quantum/rgb_matrix/animations/solid_reactive_wide.h index 1cc4dca72..a613c7ff5 100644 --- a/quantum/rgb_matrix/animations/solid_reactive_wide.h +++ b/quantum/rgb_matrix/animations/solid_reactive_wide.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
3 | 3 | ||
4 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE |
5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) | 5 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_WIDE) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE |
9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE) | 9 | RGB_MATRIX_EFFECT(SOLID_REACTIVE_MULTIWIDE) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -18,14 +18,14 @@ static HSV SOLID_REACTIVE_WIDE_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dis | |||
18 | return hsv; | 18 | return hsv; |
19 | } | 19 | } |
20 | 20 | ||
21 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | 21 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE |
22 | bool SOLID_REACTIVE_WIDE(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_WIDE_math); } | 22 | bool SOLID_REACTIVE_WIDE(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_REACTIVE_WIDE_math); } |
23 | # endif | 23 | # endif |
24 | 24 | ||
25 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | 25 | # ifdef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE |
26 | bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_WIDE_math); } | 26 | bool SOLID_REACTIVE_MULTIWIDE(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_WIDE_math); } |
27 | # endif | 27 | # endif |
28 | 28 | ||
29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
30 | # endif // !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) | 30 | # endif // !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE) || !defined(ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE) |
31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/solid_splash_anim.h b/quantum/rgb_matrix/animations/solid_splash_anim.h index 99efb4996..bd9c1cfe2 100644 --- a/quantum/rgb_matrix/animations/solid_splash_anim.h +++ b/quantum/rgb_matrix/animations/solid_splash_anim.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_RGB_MATRIX_SOLID_SPLASH) || !defined(DISABLE_RGB_MATRIX_SOLID_MULTISPLASH) | 2 | # if defined(ENABLE_RGB_MATRIX_SOLID_SPLASH) || defined(ENABLE_RGB_MATRIX_SOLID_MULTISPLASH) |
3 | 3 | ||
4 | # ifndef DISABLE_RGB_MATRIX_SOLID_SPLASH | 4 | # ifdef ENABLE_RGB_MATRIX_SOLID_SPLASH |
5 | RGB_MATRIX_EFFECT(SOLID_SPLASH) | 5 | RGB_MATRIX_EFFECT(SOLID_SPLASH) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 8 | # ifdef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH |
9 | RGB_MATRIX_EFFECT(SOLID_MULTISPLASH) | 9 | RGB_MATRIX_EFFECT(SOLID_MULTISPLASH) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -18,14 +18,14 @@ HSV SOLID_SPLASH_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t ti | |||
18 | return hsv; | 18 | return hsv; |
19 | } | 19 | } |
20 | 20 | ||
21 | # ifndef DISABLE_RGB_MATRIX_SOLID_SPLASH | 21 | # ifdef ENABLE_RGB_MATRIX_SOLID_SPLASH |
22 | bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } | 22 | bool SOLID_SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SOLID_SPLASH_math); } |
23 | # endif | 23 | # endif |
24 | 24 | ||
25 | # ifndef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 25 | # ifdef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH |
26 | bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } | 26 | bool SOLID_MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_SPLASH_math); } |
27 | # endif | 27 | # endif |
28 | 28 | ||
29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 29 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
30 | # endif // !defined(DISABLE_RGB_MATRIX_SPLASH) && !defined(DISABLE_RGB_MATRIX_MULTISPLASH) | 30 | # endif // !defined(ENABLE_RGB_MATRIX_SPLASH) && !defined(ENABLE_RGB_MATRIX_MULTISPLASH) |
31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 31 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/splash_anim.h b/quantum/rgb_matrix/animations/splash_anim.h index 1415bcc0f..382355e9e 100644 --- a/quantum/rgb_matrix/animations/splash_anim.h +++ b/quantum/rgb_matrix/animations/splash_anim.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef RGB_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_RGB_MATRIX_SPLASH) || !defined(DISABLE_RGB_MATRIX_MULTISPLASH) | 2 | # if defined(ENABLE_RGB_MATRIX_SPLASH) || defined(ENABLE_RGB_MATRIX_MULTISPLASH) |
3 | 3 | ||
4 | # ifndef DISABLE_RGB_MATRIX_SPLASH | 4 | # ifdef ENABLE_RGB_MATRIX_SPLASH |
5 | RGB_MATRIX_EFFECT(SPLASH) | 5 | RGB_MATRIX_EFFECT(SPLASH) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_RGB_MATRIX_MULTISPLASH | 8 | # ifdef ENABLE_RGB_MATRIX_MULTISPLASH |
9 | RGB_MATRIX_EFFECT(MULTISPLASH) | 9 | RGB_MATRIX_EFFECT(MULTISPLASH) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -19,14 +19,14 @@ HSV SPLASH_math(HSV hsv, int16_t dx, int16_t dy, uint8_t dist, uint16_t tick) { | |||
19 | return hsv; | 19 | return hsv; |
20 | } | 20 | } |
21 | 21 | ||
22 | # ifndef DISABLE_RGB_MATRIX_SPLASH | 22 | # ifdef ENABLE_RGB_MATRIX_SPLASH |
23 | bool SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SPLASH_math); } | 23 | bool SPLASH(effect_params_t* params) { return effect_runner_reactive_splash(qsub8(g_last_hit_tracker.count, 1), params, &SPLASH_math); } |
24 | # endif | 24 | # endif |
25 | 25 | ||
26 | # ifndef DISABLE_RGB_MATRIX_MULTISPLASH | 26 | # ifdef ENABLE_RGB_MATRIX_MULTISPLASH |
27 | bool MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SPLASH_math); } | 27 | bool MULTISPLASH(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SPLASH_math); } |
28 | # endif | 28 | # endif |
29 | 29 | ||
30 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 30 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
31 | # endif // !defined(DISABLE_RGB_MATRIX_SPLASH) || !defined(DISABLE_RGB_MATRIX_MULTISPLASH) | 31 | # endif // !defined(ENABLE_RGB_MATRIX_SPLASH) || !defined(ENABLE_RGB_MATRIX_MULTISPLASH) |
32 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED | 32 | #endif // RGB_MATRIX_KEYREACTIVE_ENABLED |
diff --git a/quantum/rgb_matrix/animations/typing_heatmap_anim.h b/quantum/rgb_matrix/animations/typing_heatmap_anim.h index 28f040109..b66667b9b 100644 --- a/quantum/rgb_matrix/animations/typing_heatmap_anim.h +++ b/quantum/rgb_matrix/animations/typing_heatmap_anim.h | |||
@@ -83,4 +83,4 @@ bool TYPING_HEATMAP(effect_params_t* params) { | |||
83 | } | 83 | } |
84 | 84 | ||
85 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS | 85 | # endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS |
86 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && !defined(DISABLE_RGB_MATRIX_TYPING_HEATMAP) | 86 | #endif // defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) && defined(ENABLE_RGB_MATRIX_TYPING_HEATMAP) |
diff --git a/quantum/rgb_matrix/rgb_matrix.h b/quantum/rgb_matrix/rgb_matrix.h index af5ca9e79..a804d99ab 100644 --- a/quantum/rgb_matrix/rgb_matrix.h +++ b/quantum/rgb_matrix/rgb_matrix.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #include "rgb_matrix_types.h" | 23 | #include "rgb_matrix_types.h" |
24 | #include "color.h" | 24 | #include "color.h" |
25 | #include "quantum.h" | 25 | #include "quantum.h" |
26 | #include "rgb_matrix_legacy_enables.h" | ||
27 | 26 | ||
28 | #ifdef IS31FL3731 | 27 | #ifdef IS31FL3731 |
29 | # include "is31fl3731.h" | 28 | # include "is31fl3731.h" |
diff --git a/quantum/rgb_matrix/rgb_matrix_legacy_enables.h b/quantum/rgb_matrix/rgb_matrix_legacy_enables.h deleted file mode 100644 index 398858ebc..000000000 --- a/quantum/rgb_matrix/rgb_matrix_legacy_enables.h +++ /dev/null | |||
@@ -1,153 +0,0 @@ | |||
1 | /* Copyright 2021 QMK | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | // to-do: remove this | ||
18 | |||
19 | #pragma once | ||
20 | |||
21 | #ifndef DISABLE_RGB_MATRIX_ALPHAS_MODS | ||
22 | # define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
23 | #endif | ||
24 | #ifndef DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
25 | # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
26 | #endif | ||
27 | #ifndef DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
28 | # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
29 | #endif | ||
30 | #ifndef DISABLE_RGB_MATRIX_BREATHING | ||
31 | # define ENABLE_RGB_MATRIX_BREATHING | ||
32 | #endif | ||
33 | #ifndef DISABLE_RGB_MATRIX_BAND_SAT | ||
34 | # define ENABLE_RGB_MATRIX_BAND_SAT | ||
35 | #endif | ||
36 | #ifndef DISABLE_RGB_MATRIX_BAND_VAL | ||
37 | # define ENABLE_RGB_MATRIX_BAND_VAL | ||
38 | #endif | ||
39 | #ifndef DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
40 | # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
41 | #endif | ||
42 | #ifndef DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
43 | # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
44 | #endif | ||
45 | #ifndef DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
46 | # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
47 | #endif | ||
48 | #ifndef DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
49 | # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
50 | #endif | ||
51 | #ifndef DISABLE_RGB_MATRIX_CYCLE_ALL | ||
52 | # define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
53 | #endif | ||
54 | #ifndef DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
55 | # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
56 | #endif | ||
57 | #ifndef DISABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
58 | # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
59 | #endif | ||
60 | #ifndef DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
61 | # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
62 | #endif | ||
63 | #ifndef DISABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
64 | # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
65 | #endif | ||
66 | #ifndef DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
67 | # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
68 | #endif | ||
69 | #ifndef DISABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
70 | # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
71 | #endif | ||
72 | #ifndef DISABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
73 | # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
74 | #endif | ||
75 | #ifndef DISABLE_RGB_MATRIX_DUAL_BEACON | ||
76 | # define ENABLE_RGB_MATRIX_DUAL_BEACON | ||
77 | #endif | ||
78 | #ifndef DISABLE_RGB_MATRIX_RAINBOW_BEACON | ||
79 | # define ENABLE_RGB_MATRIX_RAINBOW_BEACON | ||
80 | #endif | ||
81 | #ifndef DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS | ||
82 | # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS | ||
83 | #endif | ||
84 | #ifndef DISABLE_RGB_MATRIX_RAINDROPS | ||
85 | # define ENABLE_RGB_MATRIX_RAINDROPS | ||
86 | #endif | ||
87 | #ifndef DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
88 | # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
89 | #endif | ||
90 | #ifndef DISABLE_RGB_MATRIX_HUE_BREATHING | ||
91 | # define ENABLE_RGB_MATRIX_HUE_BREATHING | ||
92 | #endif | ||
93 | #ifndef DISABLE_RGB_MATRIX_HUE_PENDULUM | ||
94 | # define ENABLE_RGB_MATRIX_HUE_PENDULUM | ||
95 | #endif | ||
96 | #ifndef DISABLE_RGB_MATRIX_HUE_WAVE | ||
97 | # define ENABLE_RGB_MATRIX_HUE_WAVE | ||
98 | #endif | ||
99 | #ifndef DISABLE_RGB_MATRIX_PIXEL_RAIN | ||
100 | # define ENABLE_RGB_MATRIX_PIXEL_RAIN | ||
101 | #endif | ||
102 | #ifndef DISABLE_RGB_MATRIX_PIXEL_FLOW | ||
103 | # define ENABLE_RGB_MATRIX_PIXEL_FLOW | ||
104 | #endif | ||
105 | #ifndef DISABLE_RGB_MATRIX_PIXEL_FRACTAL | ||
106 | # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL | ||
107 | #endif | ||
108 | #if defined(RGB_MATRIX_FRAMEBUFFER_EFFECTS) | ||
109 | # ifndef DISABLE_RGB_MATRIX_TYPING_HEATMAP | ||
110 | # define ENABLE_RGB_MATRIX_TYPING_HEATMAP | ||
111 | # endif | ||
112 | # ifndef DISABLE_RGB_MATRIX_DIGITAL_RAIN | ||
113 | # define ENABLE_RGB_MATRIX_DIGITAL_RAIN | ||
114 | # endif | ||
115 | #endif | ||
116 | #if defined(RGB_MATRIX_KEYREACTIVE_ENABLED) | ||
117 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
118 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
119 | # endif | ||
120 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE | ||
121 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
122 | # endif | ||
123 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
124 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
125 | # endif | ||
126 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
127 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
128 | # endif | ||
129 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
130 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
131 | # endif | ||
132 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
133 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
134 | # endif | ||
135 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
136 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
137 | # endif | ||
138 | # ifndef DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
139 | # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
140 | # endif | ||
141 | # ifndef DISABLE_RGB_MATRIX_SPLASH | ||
142 | # define ENABLE_RGB_MATRIX_SPLASH | ||
143 | # endif | ||
144 | # ifndef DISABLE_RGB_MATRIX_MULTISPLASH | ||
145 | # define ENABLE_RGB_MATRIX_MULTISPLASH | ||
146 | # endif | ||
147 | # ifndef DISABLE_RGB_MATRIX_SOLID_SPLASH | ||
148 | # define ENABLE_RGB_MATRIX_SOLID_SPLASH | ||
149 | # endif | ||
150 | # ifndef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
151 | # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
152 | # endif | ||
153 | #endif | ||