summaryrefslogtreecommitdiffstats
path: root/quantum/led_matrix
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-08-23 00:03:01 +0100
committerGitHub <noreply@github.com>2023-08-23 00:03:01 +0100
commitdfb6d38f08b3912baffbca23e351dd0ad836238c (patch)
treeb9b609ff800ebe138264e001926c50330dfd82ec /quantum/led_matrix
parent0d535381deeceb8e691e53ab98445efe884dc8f4 (diff)
Simplfy RGB/LED matrix effect logic (#21703)
Diffstat (limited to 'quantum/led_matrix')
-rw-r--r--quantum/led_matrix/post_config.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/quantum/led_matrix/post_config.h b/quantum/led_matrix/post_config.h
new file mode 100644
index 0000000000..b6770b9ee1
--- /dev/null
+++ b/quantum/led_matrix/post_config.h
@@ -0,0 +1,19 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+// clang-format off
+
+// reactive
+#if defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE) || \
+ defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_WIDE) || \
+ defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE) || \
+ defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_CROSS) || \
+ defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS) || \
+ defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS) || \
+ defined(ENABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS) || \
+ defined(ENABLE_LED_MATRIX_SOLID_SPLASH) || \
+ defined(ENABLE_LED_MATRIX_SOLID_MULTISPLASH)
+# define LED_MATRIX_KEYPRESSES
+#endif