-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FastLED allows interrupts while bitbanging output, resulting in glitchy animations #638
Comments
I was able to confirm a similar flicker on my WS2812B strip as well during this example demo, so I no longer think it is related to the LED type. |
I can also confirm a similar behaviour in one of my simple examples. Maybe in my case is due to using an ESP32? It seemed that it started when i used wifi together with the ws2812. I have to further test it |
I also confirm.. horrible flicking/blinking witch WS2812B, i tested also other settings without success. |
Interestingly, I wasn't able to reproduce this issue on my Trinket-powered neopixel goggles... |
Reproduces whether I power the LEDs from 5V or 3.3V, so not a data signal strength ratio issue I think. |
Hi everyone, I found a solution from the helpful google+ FastLED community! Change your include for FastLED to:
It seems like this issue is called by interrupts being called while fastLED is bitbanging the output to the strips! |
If I reproduce my code on ArduinoMega all works very well but on Teensy 3.2 not really, blinking unreasonable but from time when I put my comment about problems I did some progress with bit shifting and timing. Is better, leds now stop blinking just little bit dimming xD |
#define FASTLED_ALLOW_INTERRUPTS 0 In my case, that solution change nothing:-/ |
Also try turning off dithering - it’s supposed to turn off if the refresh rate is below 100hz, but that logic may be faulty. |
I downloaded from PJRC WS2811Serial lib and go by basic configuration and now all working perfect without any problems and additional code lines for dithering or interrupts. |
FastLED's allowing of interrupts is intentional - and there's a mechanism to turn it off if it is interfering with your setup. |
I see this strange behavior during animations which fade to black on the my neopixels.
I know neopixels have some strange behavior at low brightness settings, do we know if that is the problem?
Code is the DemoReel100 FastLED example. .gif above is slowed 50% to make it easier to see.
The text was updated successfully, but these errors were encountered: