kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.58k stars 344 forks source link

Just show 2 color #275

Closed olieter closed 3 years ago

olieter commented 3 years ago

When is choose this code its shows just the 2 first color the thirt dont show it

setSegment() also allows you to specify up to three colors using this syntax:

uint32_t colors[] = {RED, GREEN, BLUE}; // create an array of colors ws2812fx.setSegment(0, 0, LED_COUNT-1, FX_MODE_BLINK, colors, 2000, false);

moose4lord commented 3 years ago

Not all modes use three colors. Actually, of the standard effects, only the TRICOLOR_CHASE and BICOLOR_CHASE modes use three colors. BLINK mode only uses two. The custom TRIFADE mode uses three colors and may give you the effect you're looking for.