Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to create Player with SoftwareSerial #54

Open
Alexandruino opened this issue Jul 27, 2023 · 2 comments
Open

Impossible to create Player with SoftwareSerial #54

Alexandruino opened this issue Jul 27, 2023 · 2 comments

Comments

@Alexandruino
Copy link

Alexandruino commented Jul 27, 2023

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.

@Jeff-Haas
Copy link

Try the last comment in this other issue:
#49

@alastaira
Copy link

Are you deploying to a target platform that actually supports SoftwareSerial? How are you initialising the SoftSerial instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants