Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15574

Calling a list of colors within a switch case for neopixel

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 15574

Latest Images

Trending Articles



Latest Images