MajicDesigns / MD_YX5300

Library for Serial MP3 Player based on YX5300 IC (Catalex Module)
GNU Lesser General Public License v3.0
31 stars 7 forks source link

How to Check if Track is Playing #4

Closed Good-man closed 5 years ago

Good-man commented 5 years ago

In my code I want to start a track and continue doing other things in loop() until the track is finished. Similar to the Busy check on DFPlayer. Is there a way to do this with the YX5300 and your library?

MajicDesigns commented 5 years ago

The device sends a status message when the track is finished playing.The returned status values are listed in the library documentation.

Good-man commented 5 years ago

So there is no way to query for it? I must be missing something. I will read the comments in the header file.

MajicDesigns commented 5 years ago

html help file is in your docs folder or online from the readme.md on github. Look for the cdData structure.

Good-man commented 5 years ago

I tried your sample. I get the same result whether a track is playing or not. I am really disappointed in this library and your help.

MajicDesigns commented 5 years ago

Thanks for the feedback. I hope you find something and/or someone that suits you better.