ws2812: replace RGBLED_NUM with driver-owned constant to decouple driver from RGBLEDs/RGBMATRIX defines (#18036)

This commit is contained in:
Thomas Kriechbaumer 2022-10-20 23:17:51 +02:00 committed by GitHub
parent a7d6643e3d
commit c4f99f06ab
Failed to generate hash of commit
4 changed files with 25 additions and 19 deletions

View file

@ -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: