Hi all
I'm using a DFPlayer Pro to play a single sound file in response to a button press (using the DF1201S library) but can't seem to find a command that would allow me to stop the track playing without removing power from the DFPlayer completely.
I can pause the track on demand ok (DF1201S.pause();), but what I really want to do is to stop the track playing (by pressing the button again) and then for the next button press to restart the track from the beginning again, not from the point at where it was stopped. Distinguishing between an ON button press and OFF button press is not the problem, the problem is finding a something to achieve the opposite of "DF1201S.start();" (sort of like "DF1201S.stop();" as it were).
Is it possible to do this at all? If not, I suppose could add a switch in the DFPlayer power line but I'd rather use my pushbutton to start, stop and restart the track.