Thanks to Paul V. and Ben Combee for their useful suggestions on how to support line endings (C++ “endl”) and internal format manipulators, respectively, we now have a bona fide Streaming library.
With it, you can now write code like this:
Serial << "A is " << lettera << "." << endl; lcd << "The date is " << d << "-" << m << "-" << y << "."; eth << "You can use modifiers too, for example:" << endl; Serial << _BYTE(a) << " is " << _HEX(a) << " in hex. " << endl;
And thanks very much for all the Arduinians who have used and commented on Streaming. Cool stuff.
The new library is available in the “Libraries” section or here.