39 size_t printNumber(
unsigned long n, uint8_t base);
40 size_t printFloat(
double number, uint8_t digits);
43 void setWriteError(
int err = 1)
49 Print() : write_error(0) {}
55 void clearWriteError()
60 virtual size_t write(uint8_t) = 0;
61 size_t write(
const char *str)
66 return write((
const uint8_t *) str, strlen(str));
68 virtual size_t write(
const uint8_t *buffer,
size_t size);
69 size_t write(
const char *buffer,
size_t size)
71 return write((
const uint8_t *) buffer, size);
74 size_t printf(
const char * format, ...)
__attribute__ ((format (printf, 2, 3)));
75 size_t print(const std::
string &);
76 size_t print(const
char[]);
78 size_t print(
unsigned char,
int = DEC);
79 size_t print(
int,
int = DEC);
80 size_t print(
unsigned int,
int = DEC);
81 size_t print(
long,
int = DEC);
82 size_t print(
unsigned long,
int = DEC);
83 size_t print(
double,
int = 2);
85 size_t println(const std::
string &s);
86 size_t println(const
char[]);
88 size_t println(
unsigned char,
int = DEC);
89 size_t println(
int,
int = DEC);
90 size_t println(
unsigned int,
int = DEC);
91 size_t println(
long,
int = DEC);
92 size_t println(
unsigned long,
int = DEC);
93 size_t println(
double,
int = 2);