Loading...
Searching...
No Matches

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.
 
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.

◆ numof

uint16_t ws281x_params_t::numof

Number of chained RGB LEDs.

Definition at line 116 of file ws281x.h.

◆ pin

gpio_t ws281x_params_t::pin

GPIO connected to the data pin of the first LED.

Definition at line 117 of file ws281x.h.


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