PropWare
C++ objects and CMake build system for Parallax Propeller
|
Function to return RGB colors based on an index between 0 and 255. More...
#include "ws2812.h"
Go to the source code of this file.
Functions | |
uint32_t | ws2812_wheel (int pos) |
Create color from a 0 to 255 position input. More... | |
Function to return RGB colors based on an index between 0 and 255.
Definition in file ws2812_wheel.c.
uint32_t ws2812_wheel | ( | int | pos | ) |
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 |
Definition at line 16 of file ws2812_wheel.c.