|
ws2812 library
v0.85
Supports ws2812 and ws2812b
|
Function to return RGB colors based on an index between 0 and 255. More...
#include "ws2812.h"Functions | |
| uint32_t | ws2812_wheel_dim (int pos, int brightness) |
| Create color from a 0 to 255 position input. | |
Function to return RGB colors based on an index between 0 and 255.
| uint32_t ws2812_wheel_dim | ( | int | pos, |
| int | brightness | ||
| ) |
Create color from a 0 to 255 position input.
Colors transition red to green to blue.
| pos | Position in the color spectrum where 0 is on the red end and 255 is on the blue end |
| brightness | The brightness of the generated color where 0 is off and 255 is full |
1.8.1.2