Robin2:
Perhaps it's because I'm thick, but I have no idea what your code is supposed to do.Why are there huge arrays of identical values? Wouldn't one copy of that value do?
Why are there lines and lines of NOP assembler instructions?
Also there is another file pgmspace.h that seems to have some code in it and you haven't included that.
What does send_1M_pattern() do?
What does send_strip() do?
...R
Ok, so a lot of the code is actually from the LED strip control sketch that I downloaded from the LED strip manufacturer. All I did (well attempting to do) is take the portion of that code that actually sends the final command to the LEDs and link it to a digital pin state. So the "send_1M_pattern()" sends the appropriate section of code from the set of colour combinations. (If you look above there is about 6 different Hexacode type sections that determine the colour of the LEDs.
As for the "send_strip()" portion, once again it is required for the LED strip operation and I just copied the code over. I believe it just tells the Arduino to actually send the pattern over to the LEDs.
It's messy, I am a beginner and I'll also post a link to just the default LED strip control.