ill preface this with i’m pretty new to arduino and coding so bare with my ignorance! I’ve put together some code to do run some lighting shows. I’ve had it running but as ive added to it ive run into a problem. The basic project is running 5 individual led strips, x2 of which run one pattern and x3 of which run another pattern simultaneously. Unless a button is pressed and then it switches to the same groups of strips just running different patterns.
I had this set up with just 2 strips and it was fine but now ive added the extra strips, one set of patterns (void fireMode) it one runs the pattern once then ends but (voidRgb) runs perfectly fine. The loops is running continuously as i’ve checked with a serial.print. Just the code of the actual pattern seems to cease. I also commented out the other effects to try it with just one but it made no difference. It may also help to know im using a switch function for the change in pattern, which i may add more cases to later.
Ill post my code and if theres a more efficient way of doing what i’m trying to do then i’m all ears. I havnt tried it yet, but id like to try an interrupt for the switch, as during the same sets of patterns i’m having issues with, a switch press isn’t noticed until one loop has been completed. Although i’m not sure thats neccessary?
Code is attached because of character limit.
Thanks in Advance!
Case_lighting_with_cycler.ino (9.13 KB)