Hardware Reference
In-Depth Information
Table 1-2. Updated Print Public Methods
Method
Description
size_t write(const char *str) { return
write((const uint8_t *)str, strlen(str)); }
Prints the character string at the pointer location. This
function automatically finds the length of the character
string. It returns number of characters printed.
virtual size_t write(const uint8_t *buffer,
size_t size);
Writes a constant unit8_t pointer to a buffer of size size_t .
Prints the bytes of a certain length, and returns the number
of characters printed.
size_t print(const __FlashStringHelper *);
Prints a constant string stored in flash. Returns the number
of character printed.
size_t print(const String &);
Prints a constant string object passed as reference. Returns
the number of characters printed.
size_t print(const char[]);
Prints a constant character array. Returns the number of
characters printed.
size_t print(char);
Prints a character. Returns the number of characters printed.
size_t print(unsigned char, int = DEC);
Prints an unsigned character in decimal format. Returns the
number of characters printed.
size_t print(int, int = DEC);
Prints an integer with the default decimal format. Returns
the number of characters printed.
size_t print(unsigned int, int = DEC);
Prints an unsigned integer with the default decimal format.
Returns the number of characters printed.
size_t print(long, int = DEC);
Prints a long with the default decimal format. Returns the
number of characters printed.
size_t print(unsigned long, int = DEC);
Prints an unsigned long with the default decimal format.
Returns the number of characters printed.
size_t print(double, int = 2);
Prints a double with two decimal places. Returns the
number of characters printed.
size_t print(const Printable&);
Prints a printable object passed as reference. Returns the
number of characters printed.
size_t println(const __FlashStringHelper *);
Prints a constant string held in flash with a newline
character. Returns the number of characters printed.
size_t println(const String &s);
Prints a const String passed as reference with a newline
character. Returns the number of characters printed.
size_t println(const char[]);
Prints a constant character array with a newline character.
Returns the number of characters printed.
size_t println(char);
Prints a char with a newline. Returns the number of
characters printed.
size_t println(unsigned char, int = DEC);
Print an unsigned char with the default decimal format with
newline. Returns the number of characters printed.
size_t println(int, int = DEC);
Prints an integer with a newline with the default decimal
format. Returns the number of characters printed.
( continued )
 
 
Search WWH ::




Custom Search