Hi, I've recently put together a setup with a tactile/momentary switch, latching switch, and Arduino Nano using an altered version of the All Effects sketch from Tweaking4All's Fastled/Neopixels page. However, although the tactile switch works perfectly in toggling from one sketch to another, the latching switch (spst) has a peculiar tendency to pause the effect when I power it off (it powers on fine). Of note, the power LED on the Arduino itself shows on and off when I push and release the latching switch, but when in the off position it pauses the sketch, instead of shutting off completely. I was told by a friend this shouldn't be happening since the VIN input on the Arduino shouldn't be affected by code. Hopefully someone here can help me, as it would not be very product friendly to have to manually unplug the adapter from the DC jack every time you want to power off Thanks in advance!
Here is a "schematic" of my setup to the best of my knowledge:
Here's the code (I'm assuming too large for this forum, so I posted on Pastebin):
Any help is much appreciated! I'm still a beginner, so forgive me for any stupidity