NeoPixel Functions

Hi everyone,

I have four neopixels that I want to control with a series of functions. Each function will set them to a series of different colours and animations such as amber and flashing blue or static blue white green white.

My question is, how could I change to a different colour mode / function with a single button press? I've thought about an array but I just get stuck thinking about how I can do that.

Cody

Increment a counter each time the button becomes pressed (not is pressed) then test the counter value to determine which function to run. Use switch/case or if/else to do this.

Awesome! Thank you very much!