You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a couple of lines of helper code to allow for easy printing. If anyone is interested, I could incorporate it in Stream.h and open a pull request.
Usage:
int a {9};
int b {10};
Serial << "You have " << a << " out of " << b << " retries left.\n";
// Prints: "You have 9 out of 10 retries left."
Serial << makePair(1.2, 4) << '' << makePair(12, BIN) << '\n';
// Prints: "1.2000 1100"
The text was updated successfully, but these errors were encountered:
per1234
changed the title
PR for easy printing?
Add "streaming" syntax support to Print class
Feb 4, 2023
Maybe you can prepare a PR for this? I might add though, that there's some possibility that this might never make it into the Arduino API (not my call though).
I wrote a couple of lines of helper code to allow for easy printing. If anyone is interested, I could incorporate it in
Stream.h
and open a pull request.Usage:
The text was updated successfully, but these errors were encountered: