Is it possible to strip out unnecessary parts of the FastLED Library to reduce it’s size and allow for more memory to available for my code? I know what kind of LEDs I am using, so do i need all the templates for other LEDs or chipsets?
Im driving 60 ws2812b LEDs from a Trinket 5v board and the following 8 lines of code takes up almost 2/3 of the available storage space!
#include<FastLED.h>
CRGB leds[60];
void setup() {
FastLED.addLeds<WS2812B,1,GRB>(leds, 60).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(96);
}
void loop(){
FastLED.show();
FastLED.delay(1000/120);
}
“Sketch uses 3398 bytes (63%) of program storage space. Maximum is 5310 bytes. Global variables use 277 bytes of dynamic memory.”
The DemoReel100 default sketch is 114% of program storage space. I also understand that I could try a higher capacity dev board, but I dont have one atm, and the trinket is perfectly sized for what I am doing.
I’ve tried stripping out all the 4-pin LEDs (anything with a clock pin), matrices, dmx, spi, and more, however I am hardly making a dent. I know the math and colorutils libraries are relatively large, but I really just want to remove superfluous or wasted information.
Any assistance would be appreciated.