I'd like to add an on/off switch for my Auduino that does not cut power. I am using the DC barrel jack to power the Arduino, so I can't easily interrupt the power supply that way. I've tried tinkering with some code, but can't seem to get the audio to completely stop.
My on/off button is a toggle switch I have already wired up to digital pin 2, and toggles between +5V and GND just fine (verified in serial monitor). I just need to use that existing toggle switch to make the audio stop when pin 2 goes low.
Thanks!