summaryrefslogtreecommitdiff
path: root/drivers/led
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-11-30 10:19:41 +1100
committerGitHub <noreply@github.com>2023-11-30 10:19:41 +1100
commit099eaefb40b4a39820930bfee90284af9743ef09 (patch)
tree4b1a0ec78e26d24be18a5b29dd39de2ac2cd4ebc /drivers/led
parent2886c335a0e8a9bb6b6549e648ece7e51519f787 (diff)
Add `APA102_LED_COUNT` define (#22530)
Diffstat (limited to 'drivers/led')
-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..027221f434 100644
--- a/drivers/led/apa102.h
+++ b/drivers/led/apa102.h
@@ -19,6 +19,12 @@
19 19
20#include "color.h" 20#include "color.h"
21 21
22#if defined(RGBLED_NUM)
23# define APA102_LED_COUNT RGBLED_NUM
24#elif defined(RGB_MATRIX_LED_COUNT)
25# define APA102_LED_COUNT RGB_MATRIX_LED_COUNT
26#endif
27
22#ifndef APA102_DEFAULT_BRIGHTNESS 28#ifndef APA102_DEFAULT_BRIGHTNESS
23# define APA102_DEFAULT_BRIGHTNESS 31 29# define APA102_DEFAULT_BRIGHTNESS 31
24#endif 30#endif