From dcf84169ae75b11c1656d45dbc6c626d93da6a10 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Dec 2017 15:07:52 +0100 Subject: Add output support (broken on esp8266) --- include/esp8266/driver/stdout.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/esp8266/driver/stdout.h (limited to 'include/esp8266/driver/stdout.h') diff --git a/include/esp8266/driver/stdout.h b/include/esp8266/driver/stdout.h new file mode 100644 index 0000000..9114501 --- /dev/null +++ b/include/esp8266/driver/stdout.h @@ -0,0 +1,20 @@ +#ifndef STANDARDOUTPUT_H +#define STANDANDOUTPUT_H + +#include "object/outputstream.h" + +class StandardOutput : public OutputStream { + private: + StandardOutput(const StandardOutput ©); + + public: + StandardOutput () {} + void setup(); + + virtual void put(char c) override; + virtual void write(const char *s) override; +}; + +extern StandardOutput kout; + +#endif -- cgit v1.2.3