1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Adding write(str) and write(buf, size) for USB CDC.

So that they work on the Leonardo.

http://code.google.com/p/arduino/issues/detail?id=958
This commit is contained in:
David A. Mellis
2012-06-14 15:53:27 +01:00
parent 57ed5ba6f2
commit f833374312
3 changed files with 7686 additions and 0 deletions

View File

@ -39,6 +39,7 @@ public:
virtual int read(void);
virtual void flush(void);
virtual size_t write(uint8_t);
using Print::write; // pull in write(str) and write(buf, size) from Print
operator bool();
};
extern Serial_ Serial;