kitesurfer1404 / WS2812FX

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

Create a new WS2812FX Object for new led settings #264

Closed Miky94x closed 3 years ago

Miky94x commented 3 years ago

Hi, is possible to create a new WS2812FX object at runtime?

i've tried this way, when i receive serial data, using a switch case i select between two or more led configuration but the strip respond only at the first ws2812fx object change with some problem (some blink random), on the second try the arduino don't respond to the serial and all the leds turn off

code: Pastebin

is possible to change the led type at runtime? thanks

moose4lord commented 3 years ago

The Adafruit_Neopixel lib provides the updateType() function to change the LED type. Something like this:

ws2812fx.updateType(NEO_GRB + NEO_KHZ800);
Miky94x commented 3 years ago

I've read all the neopixel function but as i see without the needed attention Thanks and have a good day