-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change pixel number at run time #1
Comments
The best way to handle this today is to dynamically create the NeoPixelBus rather than doing it statically. See below. You would not be able to maintain pixel colors and not sure you would want to.
|
Thank you. Is that not able to maintain them when the number has been changed. But after it works as normal?
|
What does it mean when you change the number of pixels? In the example above, it will clear the internal state of the "new" collection of LEDs to black. Just call Show() and it will be applied to the physical LEDs. |
We're talking about the same thing. And I agree you don't want that anyway. So we're in agreement. I wanted to make sure that it didn't affect the function of the pixels. Thanks A
|
Worked very well. Thank you |
Hi, I tried this option with the current version of the library and WS2812 board, but is not working.
the error is:
I try to create a ws2812 sketch that store configuration in SPIFS so the number of leds can be changed from web interface. Thanks, |
@mariusmotea commenting on a closed issue is not a good practice. Please read this Wiki Topic on the subject of dynamic pixel counts. |
Thanks, i found that but it copile with errors. After i replace |
Update for ESP RTOS v3.2 era.
Would be useful to be able to redefine the number of pixels, and the output pin.
The esp can be configured by web interface, so modules can be deployed then configured.
I tried adjusting the count by re-issuing the NeoPixelBus strip = NeoPixelBus(pixelCount, 8); (in the adafruit lib, not yours) but every time the loop circles it gets reset.
The text was updated successfully, but these errors were encountered: