Tiny-WS2812
1.0.0
A tiny cross-platform WS2812 LED Strip driver
|
Common code shared accross all supported platforms. More...
Go to the source code of this file.
Functions | |
void | _ws2812_get_rgbmap (uint8_t(*rgbmap)[3], ws2812_order order) |
Initializes a rgb map for a given color order. More... | |
Common code shared accross all supported platforms.
The following file holds the Tiny-WS2812 code used throughout all platforms.
Definition in file ws2812_common.c.
void _ws2812_get_rgbmap | ( | uint8_t(*) | rgbmap[3], |
ws2812_order | order | ||
) |
Initializes a rgb map for a given color order.
The following function is intended only to be used for internal library code, hence the _ prefix. It fills a 3 element byte array with the necessary offsets to map/convert RGB values to a different color order. For example, setting the order to rgb
fills the rgb map with 0, 1, 2
and bgr
fill the rgb map with 2, 1, 0
, etc.
Definition at line 43 of file ws2812_common.c.