35 const static uint8_t ws2812_order_rgb[3] = { 0, 1, 2 };
36 const static uint8_t ws2812_order_rbg[3] = { 0, 2, 1 };
37 const static uint8_t ws2812_order_brg[3] = { 2, 0, 1 };
38 const static uint8_t ws2812_order_bgr[3] = { 2, 1, 0 };
39 const static uint8_t ws2812_order_grb[3] = { 1, 0, 2 };
40 const static uint8_t ws2812_order_gbr[3] = { 1, 2, 0 };
47 memcpy(rgbmap, ws2812_order_rbg, 3);
50 memcpy(rgbmap, ws2812_order_brg, 3);
53 memcpy(rgbmap, ws2812_order_bgr, 3);
56 memcpy(rgbmap, ws2812_order_grb, 3);
59 memcpy(rgbmap, ws2812_order_gbr, 3);
62 memcpy(rgbmap, ws2812_order_rgb, 3);
Exposes the Tiny-WS2812 library interface.
void _ws2812_get_rgbmap(uint8_t(*rgbmap)[3], ws2812_order order)
Initializes a rgb map for a given color order.
ws2812_order
Enum to specify the WS2812 device's color order.