Hello, I have seen a couple threads on this topic, but I haven'y been able to get a clear answer for my project.
I have programed two sets of Christmas lights to flicker on and off to music (Jingle Bells). This program works fine with no issues.
What I want to do now is attached a button to actuate the program.
Attempt 1) I used a switch (similar to a light switch). This worked, and the program repeated as long as the switch was actuated. The program ended when I switched to off. Although it worked, I wanted to use a button to actuate it.
Attempt 2) I used a push button (not sure what it was called), this also worked, but the program would only run if I manually held the button. As soon as I let go, the program stopped.
What I want is to press a button once, have the program run and play the Jingle Bell song one time, then end. This way if I want to hear Jingle Bells again, all I have to do is press the button once (not having to hold it). This would be similar to any other Christmas decoration you can buy is stores.
I apologize, I am new and am not familiar with the button typed and terminology. I also apologize I do not have my past code to reference, so any general help would be appreciated.