16 #ifndef NO_IOSTREAM_SUPPORT
18 #ifdef ARDUINO_HAS_WORKING_COUT
23 std::ostream &cout = std::cout;
34 std::streamsize
xsputn(
const std::streambuf::char_type *s,
35 std::streamsize n)
override {
36 return Serial.write(s, n);
38 std::streambuf::int_type
overflow(std::streambuf::int_type c)
override {
39 Serial.write(
char(c));
Preprocessor logic for configuring the library to make it compatible with the Arduino environment.
arduino::SerialBuf sbuf
Output stream that prints to the Serial monitor.
"Buffer" custom std::ostream that wraps the Serial output of the Arduino.
std::streambuf::int_type overflow(std::streambuf::int_type c) override
std::streamsize xsputn(const std::streambuf::char_type *s, std::streamsize n) override