aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.h
AgeCommit message (Collapse)Author
2021-05-26Correct typos in comments and documentationper1234
2017-05-23Removed unneeded include in Print.hCristian Maglie
see https://github.com/arduino/Arduino/pull/5789#discussion_r118007759
2017-05-23Move the flush method from Stream to PrintMatthijs Kooijman
This method originally flushed pending input bytes, which makes sense in Stream. At some point it was changed to flush output bytes instead, but it was never moved to Print to reflect this. Since Stream inherits from Print, this should not really affect any users of the Stream or Print classes. However to prevent problems with existing implementations of the Print class that do not provide a flush() implementation, a default implementation is provided. We should probably remove this at some point in the future, though.
2017-05-16Add Print::availableForWriteEric Wieser
If available() is in the base Stream class, then availableForWrite() should be in the base Print class
2017-03-08AVR: Prevent warnings if BIN is previously definedCristian Maglie
Fix #4784 Close #4791
2013-12-24Add Print::write(const char *, size_t)Matthijs Kooijman
The new function just calls Print::write(const uint8_t *, size_t), but this allows writing out a buffer of chars (without having to learn about casts).
2012-12-10fixed permissions on a lot of text files. see #1116Federico Fissore
2012-06-03Check for NULL pointer in Print.write().David A. Mellis
Otherwise, trying to print(NULL) or write(NULL) could print a random character. http://code.google.com/p/arduino/issues/detail?id=941
2011-09-07Making Print::write(char *) non-virtual.David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=607
2011-08-31Renaming writeError() to getWriteError() in Print (and Stream and friends).David A. Mellis
http://code.google.com/p/arduino/issues/detail?id=608
2011-08-26Moving write errors out of return value into separate API methods.David A. Mellis
write(), print(), println() now return size_t (and don't use negative values to signal errors). Print adds writeError() for checking for write errors, clearWriteError() to reset the flag to false, and a protected setWriteError() for signalling errors. http://code.google.com/p/arduino/issues/detail?id=598
2011-08-26Changing from long to ssize_t (int) for write(), print(), println() return.David A. Mellis
2011-08-23write(), print(), and println() now return number of bytes written.David A. Mellis
The type is long, and negative values indicate errors. Needs more testing. http://code.google.com/p/arduino/issues/detail?id=551
2011-06-04Added Printable interface class to allow printing of classes such as IPAddressDavid A. Mellis
2011-03-27Adding F("foo") syntax for flash strings.David A. Mellis
2011-02-26Removing BYTE keyword (use Serial.write() instead).David A. Mellis
2010-07-04Adding support for printing Strings to the Print class.David A. Mellis
2009-12-25Adding precision parameter for printing of floats / doubles. Restructured ↵David A. Mellis
the print() and println() functions a bit.
2009-11-21Improving third-party hardware support:David A. Mellis
- moving back to multple cores per platform - using target instead of platform - moving per-board and per-programmer preferences out of Preferences.java and into a new Target class - adding a new "target" preference - support for platform:value values in board preferences for bootloader path and core - XXX: need to support platform:value syntax for board upload.using preferences.
2009-11-07Moving things around.David A. Mellis
2009-04-26Adding write(str) and write(buf, size) methods to Print class and Ethernet ↵David A. Mellis
library Client and Server classes. This allows sending a whole string or buffer at once, reducing the number of ethernet packets.
2008-11-26Adding support for printing floats and doubles (defaulting to 2 decimal places)David A. Mellis
2008-05-07Changing Print class to use regular virtual write() function (instead of my hackDavid A. Mellis
ed together version).
2008-04-18Adding the Print class.David A. Mellis