I can't figure out why my demo mode isn't working.

I can’t figure out why my demo mode isn’t working. It’s based off Andrew Tuline’s demo mode. When in demo mode, it displays the first animation. At the point when it should move to the next animation, I see a quick flash of the next animation, but it then immediately reverts back to case 0 (the first animation). I’m going crazy trying to figure out what’s wrong. Any help here would be greatly appreciated! demo_mode is down on line 132:


I’ve had a quick look and am not sure what the problem is, but i’d print the secondhand variable to serial at line 138 and smode at line 155. Then you can see what’s happening?

which button lib is that?

@Roger_Guess It’s this one: