Hello,
This is a simple project i will be happy to assist with.
I assume you are using a push up button correct/? since it doesnt remain down after first press and you need to press again to turn off(in the hardware connection, it is normally opened)
for the first condition, i will use a for loop that instructs for when button is pressed once, so it will count how many times button is pressed. if int x=0 digitalWrite(button,HIGH) This will select the message from the dip switch and loops. when it breaks out of the loop is when button is pressed again to digitalWrite(button, LOW) i.e if int x=1. Also noting that the message will be controlled independently from the loop function. withing the void setup is where i will write the if else and else if conditions for the message.
Also noting that i will repeat for switch 2 and 3.
i viewed your circuit, i assume that your N0.2-5 song is encrypted in your DFplayer, which is connected to your speaker, correct?
this is a very straight forward project, ill be happy to safe you time and work with you :), please lets chat more about the project.
Get to know me more via my profile
https://www.freelancer.com/u/Cynthiaemili
kind regards,