Go to the documentation of this file.
19 #ifndef WS281X_PARAMS_H
20 #define WS281X_PARAMS_H
33 #ifndef WS281X_PARAM_PIN
34 #define WS281X_PARAM_PIN (GPIO_PIN(0,0))
36 #ifndef WS281X_PARAM_NUMOF
37 #define WS281X_PARAM_NUMOF (8U)
39 #ifndef WS281X_PARAM_BUF
44 #define WS281X_PARAM_BUF (ws281x_buf)
51 #define WS281X_PARAMS { \
52 .pin = WS281X_PARAM_PIN, \
53 .numof = WS281X_PARAM_NUMOF, \
54 .buf = WS281X_PARAM_BUF, \
uint8_t ws281x_buf[WS281X_PARAM_NUMOF *WS281X_BYTES_PER_DEVICE]
Data buffer holding the LED states.
#define WS281X_PARAMS
WS281x initialization parameters.
static const ws281x_params_t ws281x_params[]
Initialization parameters for WS281x devices.
Struct to hold initialization parameters for a WS281x RGB LED.
#define WS281X_BYTES_PER_DEVICE
The number of bytes to allocate in the data buffer per LED.
#define WS281X_PARAM_NUMOF
Number of LEDs chained.
WS2812/SK6812 RGB LED Driver.