diff options
Diffstat (limited to 'src/wiring/comm/Serial.h')
-rw-r--r-- | src/wiring/comm/Serial.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/wiring/comm/Serial.h b/src/wiring/comm/Serial.h new file mode 100644 index 0000000..0e7a126 --- /dev/null +++ b/src/wiring/comm/Serial.h @@ -0,0 +1,20 @@ +#ifndef _SERIAL_H_ +#define _SERIAL_H_ + +#include <inttypes.h> +#include <Print.h> + +class Serial : public Print { + public: + Serial(); + void begin(uint32_t); + uint8_t available(void); + int read(void); + void flush(void); + virtual void write(uint8_t); + using Print::write; +}; + +extern Serial Serial1; +#endif + |