aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/Print.cpp15
-rw-r--r--src/core/Print.h5
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);
};