Closed kshoichi closed 3 years ago
Looks like .currentVolume() returns -1 instead of the volume when multiple instances are active. So it's probably the same for all the queries. Could be caused by the SoftwareSerial library or this repo's query function?
Making SoftwareSerial listen before querying the DFPlayer seems to fix this issue. In this case adding "mySerial1.listen();" prior to the .isPlaying() line makes it work. Not necessary if you are only using one instance of DFPLayerMini_Fast.
Other functions such as .volume, .play, and .stop all work fine with multiple instances. Tested and confirmed using this code: