Trying to control NeoPixel LED Strip with a Roller Switch

Can you post a wiring diagram? Pen, paper and a camera are good for this.

Can you put in debugging code? Print the state of the button to the serial monitor.

Oh, kudos on your proper use of code tags on your first post! Karma++