DFPlayer Pro setPlayMode
Hello There!
I am having trouble selecting another playmode than ALLCYCLE. For my purpose it's essential having SINGLE or RANDOM playback. I have 6 different Players and all exhibit the same issue.
with ‘DF1201S.setPlayMode(DF1201S.SINGLE);’ getplay correctly returns 3, however the file is still repeated.
however, with ‘DF1201S.setPlayMode(DF1201S.RANDOM);’ getplay returns 6…
Thanks a lot!
Sorry for the inconvenience. We tested an older version of DFplayer Pro and had the same problem. We have reported this issue to the product manager. If there is a solution, you will be notified as soon as possible.
jennaMake sure you are using the correct play mode constants for the DF1201S library. Double-check the documentation or example code provided by the manufacturer to ensure that DF1201S.SINGLE corresponds to the correct constant for single play mode, and DF1201S.RANDOM corresponds to the correct constant for random play mode.
bidrohini.bidrohiniIt doesn't matter if use
DF1201S.setPlayMode(DF1201S.RANDOM); // or DF1201S.RANDOM
or
DF1201S.setPlayMode(4);
the constant corresponds correctly. I already double checked the documentation. Do I have the right impression, that setting SINGLE should correspond to a sound being played only ONCE until play is pressed again? because that's definitely not working…