WS2812 RMT Driver
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
led_state Struct Reference

Desired colors for a chain of LEDs. More...

#include <ws2812_control.h>

Public Attributes

uint32_t leds [NUM_LEDS]
 

Detailed Description

Desired colors for a chain of LEDs.

Each element of leds describes one LED. The lower three bytes contain the RGB value in the order R (byte 2), G (byte 1) and B (byte 0). When the driver is configured for RGBW LEDs the most significant byte contains the white channel value. ws2812_write_leds() sends them in the order the LED reads them: green, red, blue, then white.

Member Data Documentation

◆ leds

uint32_t led_state::leds[NUM_LEDS]

Array of packed color values for each LED.


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