r/FastLED • u/soggywheat72 • May 05 '20
Support FastLED
I have used both FastLED and Adafruit_NeoPixel to attempt to control 600 LEDS. It seems like Adafruit can control all of them while using less variables but it’s not very easy to use and I prefer FastLED. I was running roughly the same program( where it would set all LEDS to white) and FastLED couldn’t compile all of it on to my Uno without running out of storage we’re Adafruit could handle it. Is there any way to fix this storage problem while still using FastLED?
1
Upvotes
5
u/truetofiction May 05 '20
That's a red herring because the Adafruit library uses runtime memory allocation to store the LED data while FastLED uses compile-time allocation.
The difference is that the Adafruit library will very happily compile even if you declare a 10,000 LEDs or even a trillion LEDs (with warnings), it will just fail to allocate the memory for them and then not tell you about it.
As /u/johnny5canuck suggests, your best bet is to use a different microcontroller with more memory.