I am using a switch case to call a loop (FX1(), FX2(),...) to change the color effect of an led strip. I am using the neopixel library and defining colors to be used for that effect. I want to define all the colors in in a separate loop and call that loop to use the defined colors (void colors();). How can I make a list of colors and call that list for each case? instead of defining the same color for each case.
4 posts - 3 participants