Loading...
Searching...
No Matches

Constants for WS2812/SK6812 RGB LEDs. More...

Detailed Description

Constants 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_constants.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data encoding parameters for WS2812/SK6812 RGB LEDs

#define WS281X_OFFSET_R   (1U)
 Offset for the red color component.
 
#define WS281X_OFFSET_G   (0U)
 Offset for the green color component.
 
#define WS281X_OFFSET_B   (2U)
 Offset for the blue color component.
 
#define WS281X_OFFSET_W   (3U)
 Offset for the white color component (only for 4-byte variants)
 

Macro Definition Documentation

◆ WS281X_OFFSET_B

#define WS281X_OFFSET_B   (2U)

Offset for the blue color component.

Definition at line 37 of file ws281x_constants.h.

◆ WS281X_OFFSET_G

#define WS281X_OFFSET_G   (0U)

Offset for the green color component.

Definition at line 33 of file ws281x_constants.h.

◆ WS281X_OFFSET_R

#define WS281X_OFFSET_R   (1U)

Offset for the red color component.

Definition at line 29 of file ws281x_constants.h.

◆ WS281X_OFFSET_W

#define WS281X_OFFSET_W   (3U)

Offset for the white color component (only for 4-byte variants)

Definition at line 41 of file ws281x_constants.h.