hubmartin / WS2812B_STM32F4

WS2812 DMA library with low RAM needs. Up to 16 paralel outputs and thousands of LEDs on each of them
MIT License
112 stars 32 forks source link

More than 100 WS2812B_NUMBER_OF_LEDS is flickered #17

Open yavuzklcc opened 1 year ago

yavuzklcc commented 1 year ago

Hi. Thanks for the library. It works very well, accurate and looks pretty good.

But when I want to set WS2812B_NUMBER_OF_LEDS is over than 100 it looks signal is disrupted.

Is there a solution about that?

Regards.

Edit1: I am using -Og compiler option and I used all of SETPIX options.

Edit2: I was able to use more than 100 led if I lower the input voltage of leds. For example 11V for 144leds and 8V 300 leds

hubmartin commented 1 year ago

Edit1: Og might not be optimal, try -Os or -O2 Edit2: WS2812B LEDs need 5V, so you need to explain what is your hardware and if you use level shifter, 11V/8V sounds weird. It looks more like electrical than firmware issue.

Best solution would be to connect oscilloscope or logic analyzer and set first 100 LEDs to "black" color and 101th white, look for the pattern at scope and see if there is some jitter or if the signal looks correct for the color you set.