ArduinoGeneral

DFPlayer 'Skip back' workaround?!

userHead eleqsis 2018-02-27 21:27:43 724 Views1 Replies
Code: Select all
myDFPlayer.previous();

This plays the previous song, which actually means the song before the current playing song. Has anyone found a clever solution on how to skip back the current song, especially without smashing up folder-loops at the same time?

Tried this, which works but also stops a given folder loop unfortunately:
Code: Select all
myDFPlayer.play(myDFPlayer.readCurrentFileNumber());

EDIT: This could be a solution which doesn't affect folder-loops, just that ugly delay in between is kind of annoying:
Code: Select all
myDFPlayer.next();
delay(100);
myDFPlayer.previous();
2018-03-13 05:23:12 Have you tried to keep a counter of the current track being played? ANd then just trying to play that song again from the beginning?

And then perhaps trying this command after it (to continue the folder looping?)

myDFPlayer.enableLoopAll()
userHeadPic whispers007