summaryrefslogtreecommitdiff
path: root/drivers/led/apa102.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/led/apa102.h')
-rw-r--r--drivers/led/apa102.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/led/apa102.h b/drivers/led/apa102.h
index cd0a19d445..e3b269883d 100644
--- a/drivers/led/apa102.h
+++ b/drivers/led/apa102.h
@@ -19,6 +19,12 @@
#include "color.h"
+#if defined(RGBLIGHT_APA102)
+# define APA102_LED_COUNT RGBLIGHT_LED_COUNT
+#elif defined(RGB_MATRIX_APA102)
+# define APA102_LED_COUNT RGB_MATRIX_LED_COUNT
+#endif
+
#ifndef APA102_DEFAULT_BRIGHTNESS
# define APA102_DEFAULT_BRIGHTNESS 31
#endif