|
TinyRobotics
|
Arduino-compatible Print base class stub for native builds. More...
#include <Print.h>

Arduino-compatible Print base class stub for native builds.
This class provides a minimal interface compatible with the Arduino Print class, allowing code that uses Print (and derived classes like Serial, Stream, etc.) to compile and run on non-Arduino (desktop/native) platforms.
Methods such as write(), print(), and println() mimic the Arduino API, enabling easy porting and testing of Arduino libraries and sketches in a standard C++ environment.
To use, derive from Print and implement the write(uint8_t) method to define how output is handled (e.g., to std::cout, a file, or a buffer).