diff options
author | amcewen <amcewen@bcs.org.uk> | 2011-04-01 21:10:38 +0100 |
---|---|---|
committer | amcewen <amcewen@bcs.org.uk> | 2011-04-01 21:10:38 +0100 |
commit | 2cedbeef132256ceca033f4b5073ab9aba818130 (patch) | |
tree | f799ab959ba4ed44dea8dcec905b35870fff3002 /cores/arduino/Print.h | |
parent | 11dd06436d6144420cc6f5b5d9a926e7f34818b1 (diff) |
Added Printable interface class to allow printing of classes such as IPAddress
Diffstat (limited to 'cores/arduino/Print.h')
-rwxr-xr-x | cores/arduino/Print.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h index b092ae5..d2014bf 100755 --- a/cores/arduino/Print.h +++ b/cores/arduino/Print.h @@ -24,6 +24,7 @@ #include <stdio.h> // for size_t #include "WString.h" +#include "Printable.h" #define DEC 10 #define HEX 16 @@ -50,6 +51,7 @@ class Print void print(long, int = DEC); void print(unsigned long, int = DEC); void print(double, int = 2); + void print(const Printable&); void println(const String &s); void println(const char[]); @@ -60,6 +62,7 @@ class Print void println(long, int = DEC); void println(unsigned long, int = DEC); void println(double, int = 2); + void println(const Printable&); void println(void); }; |