#include <Arduino.h>
#include <Print.h>
Go to the source code of this file.
Macros | |
#define | serialBegin(speed) { Serial.begin(speed); while (!Serial); } |
An utility macro that initialize the default Serial port and waits until the port is ready. More... | |
#define | DebugMessagePrintf(...) { } |
An utility macro that is expanded to myPrintf(...) only if the define DebugMode is active. More... | |
#define | DebugSerialBegin(speed) { } |
An utility macro that is expanded to serialBegin(...) only if the define DebugMode is active. More... | |
#define | DebugDelay(amount) { } |
An utility macro that is expanded to delay(...) only if the define DebugMode is active. More... | |
Functions | |
void | myPrintf (const char *sFmt,...) |
Print formatted data (equivalent to standard C printf) to the default Serial port. More... | |
void | myPrintf (const String &sFmt,...) |
Print formatted data (equivalent to standard C printf) to the default Serial port. More... | |
void | myPrintf (Print &pr, const char *sFmt,...) |
Print formatted data (equivalent to standard C printf) to a Print object. More... | |
void | myPrintf (Print &pr, const String &sFmt,...) |
Print formatted data (equivalent to standard C printf) to a Print object. More... | |
char * | format (const char *sFmt,...) |
Print formatted data (equivalent to standard C printf) to a C string. More... | |
#define DebugDelay | ( | amount | ) | { } |
An utility macro that is expanded to delay(...) only if the define DebugMode is active.
#define DebugMessagePrintf | ( | ... | ) | { } |
An utility macro that is expanded to myPrintf(...) only if the define DebugMode is active.
#define DebugSerialBegin | ( | speed | ) | { } |
An utility macro that is expanded to serialBegin(...) only if the define DebugMode is active.
#define serialBegin | ( | speed | ) | { Serial.begin(speed); while (!Serial); } |
An utility macro that initialize the default Serial port and waits until the port is ready.
char* format | ( | const char * | sFmt, |
... | |||
) |
Print formatted data (equivalent to standard C printf) to a C string.
Writes the C string pointed by sFmt to a C string
If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
sFmt | Arduino String object that contains the text to be written to Serial |
void myPrintf | ( | const char * | sFmt, |
... | |||
) |
Print formatted data (equivalent to standard C printf) to the default Serial
port.
Writes the C string pointed by sFmt
to the Serial
port.
If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
sFmt | C string that contains the text to be written to the default Serial port |
void myPrintf | ( | const String & | sFmt, |
... | |||
) |
Print formatted data (equivalent to standard C printf) to the default Serial
port.
Writes the Arduino String
object sFmt
to the Serial
port.
If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
sFmt | Arduino String object that contains the text to be written to the default Serial port |
void myPrintf | ( | Print & | pr, |
const char * | sFmt, | ||
... | |||
) |
Print formatted data (equivalent to standard C printf) to a Print
object.
Writes the C string pointed by sFmt
to a Print
object such as a Serial
port or a display that "implements" the Print
interface.
If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
pr | Arduino Print object that suports the print and println methods |
sFmt | Arduino String object that contains the text to be written to the Print argument |
void myPrintf | ( | Print & | pr, |
const String & | sFmt, | ||
... | |||
) |
Print formatted data (equivalent to standard C printf) to a Print
object.
Writes the Arduino String
object sFmt
to a Print
object such as a Serial
port or a display that "implements" the Print
interface.
If format includes format specifiers (subsequences beginning with %), the additional arguments following format are formatted and inserted in the resulting string replacing their respective specifiers.
pr | Arduino Print object that suports the print and println methods |
sFmt | Arduino String object that contains the text to be written to the Print argument |