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

Create baseclass for HardwareSerial and SoftwareSerial #538

Closed
mark5438 opened this issue Aug 7, 2023 · 1 comment
Closed

Create baseclass for HardwareSerial and SoftwareSerial #538

mark5438 opened this issue Aug 7, 2023 · 1 comment

Comments

@mark5438
Copy link

mark5438 commented Aug 7, 2023

I know they both inherit stream. But stream can not be written to. Can I make an interface with write functions that they both inherit? Will have some pretty cool applications

@per1234 per1234 self-assigned this Aug 7, 2023
@per1234
Copy link
Contributor

per1234 commented Aug 7, 2023

@mark5438 it isn't clear to me what you are proposing. Please provide a detailed proposal.

Isn't this already done by the Print class, which the Stream class inherits?

https://github.com/arduino/ArduinoCore-API/blob/master/api/Print.h

@mark5438 mark5438 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants