Hello All
I'm looking for a way to alternate between 3 tunes, using a single tactile switch.
The original tunes code is here supermariothemesong and as you can see it plays different tunes in a row. now I want to add a switch that goes through these tunes, and also wakes the circuit up, as I think it is better if the thing plays a tune and goes to sleep mode.
can anyone refer me to a good tutorial on this? I've looked into the debounce sample in the IDE, I think it's close but not enough, or maybe I'm just too much of a noob in this. I'm ok with the circuit, but lack a lot when it comes to code.
Thanks in advance for any help!