Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 16055

8-bit Color Palette Using Neopixel..?

$
0
0

I searched here and watched a few YouTube vids too but surprisingly didn't find anything...

Is there a handy function or some fairly clear math that would help me cycle LEDs on a WS2812B strip through just an 8-bit (256 color) palette choice a-la Windows 95, or "web colors"?

I'm using the Adafruit_NeoPixel.h library.

Many thanks in advance!

EDIT: After reading some of the example code on GitHub I'm thinking as a last resort maybe just to use ColorHSV() in increments of 256 and hit each choice with gamma32(). May test later, but still happy to hear of any other suggestions or pointers!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 16055

Latest Images

Trending Articles



Latest Images