diff options
| author | nucho <javatea@it.willcomlive.jp> | 2012-03-18 21:08:33 +0900 |
|---|---|---|
| committer | nucho <javatea@it.willcomlive.jp> | 2012-03-18 21:08:33 +0900 |
| commit | f649f8c562795163b21ec7cafb08d581f54c515e (patch) | |
| tree | 24aa52dee3d5567d70c3527c229a02a61497e716 | |
| parent | 7f6b217b9f31953e40edbb6a9177d69f604a2a23 (diff) | |
added print(char) and println(char)
| -rw-r--r-- | src/core/Print.cpp | 15 | ||||
| -rw-r--r-- | src/core/Print.h | 5 |
2 files changed, 19 insertions, 1 deletions
diff --git a/src/core/Print.cpp b/src/core/Print.cpp index ab58b9f..d2c3848 100644 --- a/src/core/Print.cpp +++ b/src/core/Print.cpp @@ -107,3 +107,18 @@ void Print::println(void) return; } +void Print::print(const char c) +{ + write(c); + return; +} + +void Print::println(const char c) +{ + write(c); + println(); + return; +} + + + diff --git a/src/core/Print.h b/src/core/Print.h index 3c83abe..91a7482 100644 --- a/src/core/Print.h +++ b/src/core/Print.h @@ -32,9 +32,12 @@ public: void write(const char *s,int length); void write(const char *s) { return write((const char *)s, strlen(s)); } - virtual void println(void); + void print(const char c); void print(const char *s); void print(int val, RADIX_FORMAT format); + + virtual void println(void); + void println(const char c); void println(const char *s); void println(int val, RADIX_FORMAT format); }; |
