kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.6k stars 347 forks source link

Color changing on non changing effects? #327

Closed Devilscave closed 1 year ago

Devilscave commented 1 year ago

As the heading says, how can I change the colors of non -changeable effects except to change in modes.cpp. How do I determine which color gets which value. The example of the main page: uint32_t colors[] = {RED, GREEN}; ws2812fx.setSegment(0, 0, (LED_COUNT/2)-1, FX_MODE_BLINK, colors, 1000, false); ws2812fx.setSegment(1, LED_COUNT/2, LED_COUNT-1, FX_MODE_BLINK, COLORS(ORANGE, PURPLE), 1000, false);

it does not work. It always comes the mistake colors cannot be used as a funktion

moose4lord commented 1 year ago

I copied the three lines you mention into a test sketch and didn't see any compile issues. What environment are you using (Arduino IDE or PlatformIO) and what microprocessor? If you can post your complete sketch, I'll take a look further.

Devilscave commented 1 year ago

I use a ESP8266F Board and Arduino IDE 1.8.19. For legal reasons, I cannot post the entire code. I will try again to complain in a different sketch. Thanks

Devilscave commented 1 year ago

its OK i am stupid