TomDuino2017:
Hi xl97 ,
I will look at info about flags in Arduino and what flag in the DFplayer library to use . Would the Busy pin on the player be part of the solution ?
Thanks for the reply and direction .
Tom
You can do as Power_Broker mentions...
Or use a variable. (ie: flag)
to signal when things have been played once (there is nothing to do with the DFPlayer)
Using the busy pin will only tell you when the track is done (and a bit late by millis standard)..
but this will not set any variable automatically for you..
post your code.
but more or less
declare a variable at the top:
hasplayed = false
then in your code:
if( hasplayed == false){
//play track
myMP3.play (1) ;
//set variable (flag)
hasplayed = true;
}