kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it possible to create an initial instance without parameters

AutoPlantBali opened this issue · comments

WS2812FX ws2812fx = WS2812FX(config.ledCount, WS2812FX_PIN, NEO_GRB + NEO_KHZ800);

to

WS2812FX ws2812fx;

I want to set the number of LEDs in the setup function because the number of dynamic LEDs is according to the configuration file or is there a function to scan the number of installed LEDs?

finally I have found the solution, with the setLength function.

thanks you..

Great!
There are also setPin() and updateType() functions to dynamically change the GPIO pin and neoPixelType at runtime.
Just FYI.