PowerBroker2 / DFPlayerMini_Fast

Fast and easy to understand Arduino library to use the DFPlayer Mini MP3 module from DFRobot.com. This is a huge improvement (both in terms of execution speed and simplicity) to the standard library provided by DFRobot.com.
200 stars 31 forks source link

play the second music after the first music is finished #57

Open nzappstudio opened 2 years ago

nzappstudio commented 2 years ago

Hello, I want the second music to play after the first music plays completely under one condition. How can I do that?

I have one more question. I have two buttons and when I press the first button I want to play the first music and when I press the second button I want to mute the first music and play the second song.

if (verilerim[0] == 1 && !player.isPlaying()) { player.play(1); delay(100); player.play(2); } else if (verilerim[1] == 1 && player.isPlaying()){ player.play(1); stop(); player.play(3); }