Hi, I am trying to modify an existing code by adding several different colors.

Hi,

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.

Thank You very much.

Ronald

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.

Oh, and they’re sure not very bright.

Quick guess… maybe change line 138 from:
uint8_t secondHand
to:
uint16_t secondHand

since below that it looks like you have if( secondHand == x) going to values above 255. Might be part of the problem?

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.

Thank you for the input. I will make the changes in lines 138 and 139 and also break apart the code into smaller sections and verify as I expand.

Thanks again,

Ronald