Open Alexandruino opened 1 year ago
Try the last comment in this other issue: https://github.com/SnijderC/dyplayer/issues/49
Are you deploying to a target platform that actually supports SoftwareSerial? How are you initialising the SoftSerial instance?
When trying to execute the SoftwareSerial.h example, I get the following error:
SoftSerial:7:30: error: no matching function for call to 'DY::Player::Player(SoftwareSerial)' DY::Player player(&SoftSerial); ^ /home/alex/Documents/RizomeAudio/SoftwareSerial/SoftSerial/SoftSerial.ino:7:30: note: candidates are: In file included from /home/alex/Documents/RizomeAudio/SoftwareSerial/SoftSerial/SoftSerial.ino:3:0: /home/alex/snap/arduino/current/Arduino/libraries/dyplayer-main/src/DYPlayerArduino.h:29:5: note: DY::Player::Player() Player(); ^ /home/alex/snap/arduino/current/Arduino/libraries/dyplayer-main/src/DYPlayerArduino.h:29:5: note: candidate expects 0 arguments, 1 provided /home/alex/snap/arduino/current/Arduino/libraries/dyplayer-main/src/DYPlayerArduino.h:24:9: note: constexpr DY::Player::Player(const DY::Player&) class Player : public DYPlayer ^ /home/alex/snap/arduino/current/Arduino/libraries/dyplayer-main/src/DYPlayerArduino.h:24:9: note: no known conversion for argument 1 from 'SoftwareSerial' to 'const DY::Player&' /home/alex/snap/arduino/current/Arduino/libraries/dyplayer-main/src/DYPlayerArduino.h:24:9: note: constexpr DY::Player::Player(DY::Player&&) /home/alex/snap/arduino/current/Arduino/libraries/dyplayer-main/src/DYPlayerArduino.h:24:9: note: no known conversion for argument 1 from 'SoftwareSerial' to 'DY::Player&&' exit status 1 no matching function for call to 'DY::Player::Player(SoftwareSerial)' _
I am out of ideas on how to fix this. Could you please help me?
Thank you in advance.
Alex.