ws2812: replace RGBLED_NUM with driver-owned constant to decouple driver from RGBLEDs/RGBMATRIX defines (#18036)
This commit is contained in:
parent
a7d6643e3d
commit
c4f99f06ab
4 changed files with 25 additions and 19 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue