Closed GoogleCodeExporter closed 9 years ago
Here is a version I whipped up. It adds all the necessary overloads to make
these
functions work.
Of course I couldn't stop fiddling, so:
I also refactors the functions to minimize run-time casting. Any function that
doesn't actually do anything but cast to another function is inlined.
The PrintNumber function is replaced by ultoa().
The only functional difference should be that "print(10,1)" no longer starts an
infinite loop, it now just acts like "print(10,0)" and prints a byte.
Original comment by gabebear@gmail.com
on 17 Jul 2009 at 5:16
Attachments:
[deleted comment]
[deleted comment]
The following olverloads should be added also
void Print::print(double, uint8_t int digit)
void Print::println(double, uint8_t digit)
for application that need more accurate more that default 2 digit
Original comment by rczo...@gmail.com
on 14 Dec 2009 at 3:07
I'd also add Print::printP and Print::printlnP (or some similar name) to print
strings stored in PROGMEM.
Original comment by ben.combee
on 22 Dec 2009 at 10:37
Original comment by dmel...@gmail.com
on 23 Dec 2009 at 12:33
Original comment by dmel...@gmail.com
on 25 Dec 2009 at 8:20
Original issue reported on code.google.com by
gabebear@gmail.com
on 17 Jul 2009 at 10:22