David A. Mellis
8b13206e65
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
5130a13294
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
0635790dd1
Changing from long to ssize_t (int) for write(), print(), println() return.
2011-08-26 14:20:41 -04:00
David A. Mellis
f282cbaf96
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
a239d2c541
Added Printable interface class to allow printing of classes such as IPAddress
2011-06-04 09:19:17 -04:00
David A. Mellis
5e5cce8124
Optimizing printing of numbers (writing a single buffer).
...
Fix from Bill Greiman via Limor.
2011-05-07 18:17:32 -04:00
David A. Mellis
ffe7bc53c1
Adding F("foo") syntax for flash strings.
2011-03-27 15:06:20 -04:00
David A. Mellis
218eb5e807
Moving wiring.h contents into Arduino.h.
2011-03-01 20:00:16 -05:00
David A. Mellis
c8b8b8724c
Removing BYTE keyword (use Serial.write() instead).
2011-02-26 13:58:03 -05:00
David A. Mellis
4bbd4f7448
Changing String::toCharArray() and getBytes() to accept a buffer, rather than return one. That way they don't expose the internal representation of the String class, allowing future optimization. Thanks to Paul Stoffregen.
2010-08-28 10:23:54 +00:00
David A. Mellis
2c32369685
Adding support for printing Strings to the Print class.
2010-07-04 23:22:34 +00:00
David A. Mellis
85de48989d
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
35f5f6e99f
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
David A. Mellis
584dece7b0
Moving things around.
2009-11-07 17:05:21 +00:00
David A. Mellis
0681fc1f17
Adding write(str) and write(buf, size) methods to Print class and Ethernet library Client and Server classes. This allows sending a whole string or buffer at once, reducing the number of ethernet packets.
2009-04-26 13:10:34 +00:00
David A. Mellis
d7500ba228
fixing / improving printFloat() from Mikal Hart
2009-01-25 15:44:17 +00:00
David A. Mellis
1d86178387
Adding support for printing floats and doubles (defaulting to 2 decimal places)
2008-11-26 14:15:24 +00:00
David A. Mellis
79904311bb
Wire library patch to provide better error handling.
2008-06-21 23:16:27 +00:00
David A. Mellis
4b2b39e383
Changing Print class to use regular virtual write() function (instead of my hack
...
ed together version).
2008-05-07 18:24:49 +00:00
David A. Mellis
5412a33feb
Adding the Print class.
2008-04-18 18:46:52 +00:00