Linear Algebra  arduino
Accessible implementations of linear algebra algorithms
Classes | Namespaces | Variables
ArduinoCout.hpp File Reference

Detailed Description

Arduino std::ostream Serial wrapper.

The usual "desktop" C/C++ constructs like printf and std::cout don't work on most Arduinos. This class defines an alternative to std::cout: arduino::cout. It behaves much in the same way as the former, but it writes everything to the Serial output of the Arduino using Serial.write.

Definition in file ArduinoCout.hpp.

#include "ArduinoConfig.hpp"
#include <ostream>
#include <streambuf>
+ Include dependency graph for ArduinoCout.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SerialBuf
 "Buffer" custom std::ostream that wraps the Serial output of the Arduino. More...
 

Namespaces

 arduino
 

Variables

arduino::SerialBuf sbuf
 Output stream that prints to the Serial monitor. More...