I working on a project involving a 60 LED strip and im trying to make it so that the color of the LED changes while it moves across the strip. I’ve managed to make it so that it does that the first time, but then it stops every time after. Any ideas on what I could do? Here’s the code: http://pastebin.com/wLaqufFY
Try changing your delay to delay(20) and see if that helps - it is possible to write led data too quickly.
FadeToBlack updates the led array value, you still have to FastLED.show() to actually see the results.
Otherwise the code is a mess, especially the logic in 27-32. If you follow the code you would see that on line 28 you update COLOR + 70 which probably means that at the end of the first internal loop, COLOR > 255 which will cause the outer loop to end.
Voila, one loop around and stop ( er, one loop around and then the outer for loop ends, the whole thing starts over again ).
I could make some suggestions if you need them.
Completely untested revision. You have to start thinking in smaller steps, stepping away from large, complex for loops in the main loop() function. If you ever want to add interactivity ( buttons / switches / input / output ) it’s essential that your main loop is simple and to the point.