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
|
@ -80,7 +80,7 @@
|
|||
# define WS2812_CHANNELS 3
|
||||
#endif
|
||||
#define BYTES_FOR_LED (BYTES_FOR_LED_BYTE * WS2812_CHANNELS)
|
||||
#define DATA_SIZE (BYTES_FOR_LED * RGBLED_NUM)
|
||||
#define DATA_SIZE (BYTES_FOR_LED * WS2812_LED_COUNT)
|
||||
#define RESET_SIZE (1000 * WS2812_TRST_US / (2 * WS2812_TIMING))
|
||||
#define PREAMBLE_SIZE 4
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue