ws2812 library  v0.85
Supports ws2812 and ws2812b
Functions
ws2812_wheel.c File Reference

Function to return RGB colors based on an index between 0 and 255. More...

#include "ws2812.h"

Functions

uint32_t ws2812_wheel (int pos)
 Create color from a 0 to 255 position input.

Detailed Description

Function to return RGB colors based on an index between 0 and 255.

Author
Parallax Inc.
Version
0.85

Function Documentation

uint32_t ws2812_wheel ( int  pos)

Create color from a 0 to 255 position input.

Colors transition red to green to blue.

Parameters
posPosition in the color spectrum where 0 is on the red end and 255 is on the blue end
Returns
Color at the specified position