Struct to hold initialization parameters for a WS281x RGB LED. More...

Detailed Description

Struct to hold initialization parameters for a WS281x RGB LED.

Definition at line 109 of file ws281x.h.

#include <ws281x.h>

Data Fields

uint8_t * buf
 A statically allocated data buffer storing the state of the LEDs. More...
 
uint16_t numof
 Number of chained RGB LEDs.
 
gpio_t pin
 GPIO connected to the data pin of the first LED.
 

Field Documentation

◆ buf

uint8_t* ws281x_params_t::buf

A statically allocated data buffer storing the state of the LEDs.

Precondition
Must be sized numof * WS281X_BYTES_PER_DEVICE bytes

Definition at line 115 of file ws281x.h.


The documentation for this struct was generated from the following file: