aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/Print.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2009-12-25 20:20:27 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2009-12-25 20:20:27 +0000
commit85de48989da4009dced261ac326c70bad0ba0684 (patch)
tree8e3ffb75472d9f7a6b7e86a11768314e7c00d7c3 /cores/arduino/Print.h
parentfe28586154ac07105f22408619199a7b05dee389 (diff)
Adding precision parameter for printing of floats / doubles. Restructured the print() and println() functions a bit.
Diffstat (limited to 'cores/arduino/Print.h')
-rwxr-xr-xcores/arduino/Print.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/cores/arduino/Print.h b/cores/arduino/Print.h
index a69e85d..8a1e2b8 100755
--- a/cores/arduino/Print.h
+++ b/cores/arduino/Print.h
@@ -38,25 +38,25 @@ class Print
virtual void write(uint8_t) = 0;
virtual void write(const char *str);
virtual void write(const uint8_t *buffer, size_t size);
- void print(char);
+
void print(const char[]);
- void print(uint8_t);
- void print(int);
- void print(unsigned int);
- void print(long);
- void print(unsigned long);
- void print(long, int);
- void print(double);
- void println(void);
- void println(char);
+ void print(char, int = BYTE);
+ void print(unsigned char, int = BYTE);
+ void print(int, int = DEC);
+ void print(unsigned int, int = DEC);
+ void print(long, int = DEC);
+ void print(unsigned long, int = DEC);
+ void print(double, int = 2);
+
void println(const char[]);
- void println(uint8_t);
- void println(int);
- void println(unsigned int);
- void println(long);
- void println(unsigned long);
- void println(long, int);
- void println(double);
+ void println(char, int = BYTE);
+ void println(unsigned char, int = BYTE);
+ void println(int, int = DEC);
+ void println(unsigned int, int = DEC);
+ void println(long, int = DEC);
+ void println(unsigned long, int = DEC);
+ void println(double, int = 2);
+ void println(void);
};
#endif