Default configuration for WS2812/SK6812 RGB LEDs. More...

Detailed Description

Default configuration for WS2812/SK6812 RGB LEDs.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file ws281x_params.h.

#include "board.h"
#include "ws281x.h"
+ Include dependency graph for ws281x_params.h:

Go to the source code of this file.

Variables

static const ws281x_params_t ws281x_params []
 Initialization parameters for WS281x devices. More...
 

Default configuration parameters for WS281x RGB LEDs

#define WS281X_PARAM_PIN   (GPIO_PIN(0,0))
 GPIO pin connected to the data pin of the first LED.
 
#define WS281X_PARAM_NUMOF   (8U)
 Number of LEDs chained.
 
#define WS281X_PARAM_BUF   (ws281x_buf)
 Data buffer holding LED states.
 
#define WS281X_PARAMS
 WS281x initialization parameters. More...
 
uint8_t ws281x_buf [WS281X_PARAM_NUMOF *WS281X_BYTES_PER_DEVICE]
 Data buffer holding the LED states.
 

Macro Definition Documentation

◆ WS281X_PARAMS

#define WS281X_PARAMS
Value:
{ \
.pin = WS281X_PARAM_PIN, \
.numof = WS281X_PARAM_NUMOF, \
.buf = WS281X_PARAM_BUF, \
}
#define WS281X_PARAM_NUMOF
Number of LEDs chained.
Definition: ws281x_params.h:37
#define WS281X_PARAM_BUF
Data buffer holding LED states.
Definition: ws281x_params.h:44
#define WS281X_PARAM_PIN
GPIO pin connected to the data pin of the first LED.
Definition: ws281x_params.h:34

WS281x initialization parameters.

Definition at line 51 of file ws281x_params.h.

Variable Documentation

◆ ws281x_params

const ws281x_params_t ws281x_params[]
static
Initial value:
=
{
}
#define WS281X_PARAMS
WS281x initialization parameters.
Definition: ws281x_params.h:51

Initialization parameters for WS281x devices.

Definition at line 62 of file ws281x_params.h.