ws2812: replace RGBLED_NUM with driver-owned constant to decouple driver from RGBLEDs/RGBMATRIX defines (#18036)
This commit is contained in:
committed by
GitHub
parent
a7d6643e3d
commit
c4f99f06ab
@@ -56,6 +56,12 @@
|
||||
# define WS2812_TRST_US 280
|
||||
#endif
|
||||
|
||||
#if defined(RGBLED_NUM)
|
||||
# define WS2812_LED_COUNT RGBLED_NUM
|
||||
#elif defined(RGB_MATRIX_LED_COUNT)
|
||||
# define WS2812_LED_COUNT RGB_MATRIX_LED_COUNT
|
||||
#endif
|
||||
|
||||
/* User Interface
|
||||
*
|
||||
* Input:
|
||||
|
Reference in New Issue
Block a user