Commit Graph

11 Commits

Author SHA1 Message Date
David A. Mellis aeecf63285 Making Print::write(char *) non-virtual.
http://code.google.com/p/arduino/issues/detail?id=607
2011-09-07 18:41:05 -04:00
David A. Mellis 18c16aa0a5 Renaming writeError() to getWriteError() in Print (and Stream and friends).
http://code.google.com/p/arduino/issues/detail?id=608
2011-08-31 15:39:20 -04:00
David A. Mellis 47776bb8f5 Moving write errors out of return value into separate API methods.
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-26 16:08:14 -04:00
David A. Mellis 6b5d027eef Changing from long to ssize_t (int) for write(), print(), println() return. 2011-08-26 14:20:41 -04:00
David A. Mellis 9cb0caa376 write(), print(), and println() now return number of bytes written.
The type is long, and negative values indicate errors.  Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
2011-08-23 19:12:03 -04:00
David A. Mellis 235fb018b4 Added Printable interface class to allow printing of classes such as IPAddress 2011-06-04 09:19:17 -04:00
David A. Mellis e7dea10170 Adding F("foo") syntax for flash strings. 2011-03-27 15:06:20 -04:00
David A. Mellis a3ac40f128 Removing BYTE keyword (use Serial.write() instead). 2011-02-26 13:58:03 -05:00
David A. Mellis a1a3978adb Adding support for printing Strings to the Print class. 2010-07-04 23:22:34 +00:00
David A. Mellis 42e5964395 Adding precision parameter for printing of floats / doubles. Restructured the print() and println() functions a bit. 2009-12-25 20:20:27 +00:00
David A. Mellis c312943ef4 Improving third-party hardware support:
- 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-21 23:23:43 +00:00