ws2812 library  v0.85
Supports ws2812 and ws2812b
Functions
ws2812_wheel_dim.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_dim (int pos, int brightness)
 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_dim ( int  pos,
int  brightness 
)

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
brightnessThe brightness of the generated color where 0 is off and 255 is full
Returns
Color at the specified position