Neopixel Mode change with a button

define pin 6

is for the neopixel strip, it define's pin 6 as the data output pin.. (so the instructions say)

ok ok ok.. it's an spst switch.. my bad..

and each loop has a statement such as:

void rainbow(uint8_t wait) {
if (counter == 2) {
uint16_t i, j;

which selects that loop when the counter reaches a certain number..

sorry I'm quite new to C programming so I might well be making horrendous mistakes!