I am trying to modify an existing code by adding several different colors. I am using an Arduino ProTrinket and Arduino 1.6.11. I just added several different color patterns and it will not run now. This is my first project using FastLED. Any ideas what might be wrong.
Before compiling a monster routine like that, I test everything out with a small subset of code. That way, I can fit the code into a single page and quickly find the problem.
So, why don’t you make a copy of this, rip out 95% of the palettes and secondhand statements and try it again with a manageable code base.
Also, you’ll need to change line 139 from:
static uint8_t lastSecond = 295;
to:
static uint16_t lastSecond = 295;
since you’re using a value above 255 there.