Tiny-WS2812  1.0.0
A tiny cross-platform WS2812 LED Strip driver
Public Attributes | List of all members
ws2812_rgb Struct Reference

Data structure to hold RGB color values. More...

#include <ws2812_common.h>

Public Attributes

uint8_t r
 
uint8_t g
 
uint8_t b
 

Detailed Description

Data structure to hold RGB color values.

The RGB struct holds the red, green and blue values to define colors. It is used by the ws2812_tx() function to set the color of one or more WS2812 LEDs.

Note
It should be noted that WS2812 LEDs typically suffer from poor color accuracy. As an example, the typical RGB value for orange (255,165,0) displays a color closer to yellow on my WS2812 strip.

Definition at line 67 of file ws2812_common.h.


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