diff options
author | Drashna Jaelre <drashna@live.com> | 2021-08-17 11:19:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 04:19:00 +1000 |
commit | 7da97c293da851851c204af065a0c8d2f884effd (patch) | |
tree | d1ebbc3898f66b570bf6005bdfffe0682efa8240 /quantum/led_matrix/animations/solid_reactive_nexus.h | |
parent | 85351dc23d423d1fa5d23aed8b4b478c49949b46 (diff) | |
download | qmk_firmware-7da97c293da851851c204af065a0c8d2f884effd.tar.gz qmk_firmware-7da97c293da851851c204af065a0c8d2f884effd.zip |
Rgb matrix/enable modes explicitly (#13758)
* Change animations to require explicet activation
* Add support for legacy config
* Make default for now
* Add LED Matrix support
* change LED Matrix docs
Diffstat (limited to 'quantum/led_matrix/animations/solid_reactive_nexus.h')
-rw-r--r-- | quantum/led_matrix/animations/solid_reactive_nexus.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/quantum/led_matrix/animations/solid_reactive_nexus.h b/quantum/led_matrix/animations/solid_reactive_nexus.h index 504b1104f..2520b8e1d 100644 --- a/quantum/led_matrix/animations/solid_reactive_nexus.h +++ b/quantum/led_matrix/animations/solid_reactive_nexus.h | |||
@@ -1,11 +1,11 @@ | |||
1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED | 1 | #ifdef LED_MATRIX_KEYREACTIVE_ENABLED |
2 | # if !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS) || !defined(DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS) | 2 | # if defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS) || defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS) |
3 | 3 | ||
4 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS | 4 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS |
5 | LED_MATRIX_EFFECT(SOLID_REACTIVE_NEXUS) | 5 | LED_MATRIX_EFFECT(SOLID_REACTIVE_NEXUS) |
6 | # endif | 6 | # endif |
7 | 7 | ||
8 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS | 8 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS |
9 | LED_MATRIX_EFFECT(SOLID_REACTIVE_MULTINEXUS) | 9 | LED_MATRIX_EFFECT(SOLID_REACTIVE_MULTINEXUS) |
10 | # endif | 10 | # endif |
11 | 11 | ||
@@ -19,11 +19,11 @@ static uint8_t SOLID_REACTIVE_NEXUS_math(uint8_t val, int16_t dx, int16_t dy, ui | |||
19 | return qadd8(val, 255 - effect); | 19 | return qadd8(val, 255 - effect); |
20 | } | 20 | } |
21 | 21 | ||
22 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS | 22 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS |
23 | 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); } | 23 | 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); } |
24 | # endif | 24 | # endif |
25 | 25 | ||
26 | # ifndef DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS | 26 | # ifdef ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS |
27 | bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_NEXUS_math); } | 27 | bool SOLID_REACTIVE_MULTINEXUS(effect_params_t* params) { return effect_runner_reactive_splash(0, params, &SOLID_REACTIVE_NEXUS_math); } |
28 | # endif | 28 | # endif |
29 | 29 | ||