The Arduino core Print class.
More...
#include <Print.h>
List of all members.
Public Member Functions |
void | print (const String &) |
void | print (const char[]) |
void | print (int, int=DEC) |
void | print (unsigned int, int=DEC) |
void | print (long, int=DEC) |
void | print (unsigned long, int=DEC) |
void | print (char, int=BYTE) |
void | print (double, int=2) |
void | print (unsigned char, int=BYTE) |
void | println (unsigned int, int=DEC) |
void | println (const String &s) |
void | println (double, int=2) |
void | println (unsigned char, int=BYTE) |
void | println (unsigned long, int=DEC) |
void | println (void) |
void | println (long, int=DEC) |
void | println (const char[]) |
void | println (int, int=DEC) |
void | println (char, int=BYTE) |
virtual void | write (uint8_t b)=0 |
virtual void | write (const uint8_t *buffer, size_t size) |
virtual void | write (const char *str) |
Detailed Description
The Arduino core Print class.
Member Function Documentation
void Print::print |
( |
const String & |
s ) |
|
Write a string to the associated device.
- Parameters:
-
[in] | s | the string to be printed |
void Print::print |
( |
const char |
str[] ) |
|
Write a string to the associated device.
- Parameters:
-
[in] | str | the string to be printed |
void Print::print |
( |
int |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an signed number to the associated device in ASCII.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::print |
( |
unsigned int |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an unsigned number to the associated device in ASCII.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::print |
( |
long |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an signed number to the associated device in ASCII.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::print |
( |
unsigned long |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an unsigned number to the associated device in ASCII.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::print |
( |
char |
c, |
|
|
int |
base = BYTE |
|
) |
| |
Write an signed byte to the associated device in ASCII.
- Parameters:
-
[in] | c | the byte to be printed |
[in] | base | format to be used |
void Print::print |
( |
double |
n, |
|
|
int |
digits = 2 |
|
) |
| |
Write the decimal representation of an float or double to the associated device in ASCII.
- Parameters:
-
[in] | n | the number to be printed |
[in] | digits | the digits in ftraction to be printed |
void Print::print |
( |
unsigned char |
b, |
|
|
int |
base = BYTE |
|
) |
| |
Write an unsigned byte to the associated device in ASCII.
- Parameters:
-
[in] | b | the byte to be printed |
[in] | base | format to be used |
void Print::println |
( |
unsigned int |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an unsigned number to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::println |
( |
const String & |
s ) |
|
Write a string to the associated device followed by CR LF.
- Parameters:
-
[in] | s | the string to be printed |
void Print::println |
( |
double |
n, |
|
|
int |
digits = 2 |
|
) |
| |
Write the decimal representation of an float or double to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | n | the number to be printed |
[in] | digits | the digits in ftraction to be printed |
void Print::println |
( |
unsigned char |
b, |
|
|
int |
base = BYTE |
|
) |
| |
Write an unsigned byte to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | b | the byte to be printed |
[in] | base | format to be used |
void Print::println |
( |
unsigned long |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an unsigned number to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::println |
( |
void |
) |
|
void Print::println |
( |
long |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an signed number to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::println |
( |
const char |
c[] ) |
|
Write a string to the associated device followed by CR LF.
- Parameters:
-
[in] | c | the string to be printed |
void Print::println |
( |
int |
n, |
|
|
int |
base = DEC |
|
) |
| |
Write an signed number to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | n | the number to be printed |
[in] | base | format to be used |
void Print::println |
( |
char |
c, |
|
|
int |
base = BYTE |
|
) |
| |
Write an signed byte to the associated device in ASCII followed by CR LF.
- Parameters:
-
[in] | c | the byte to be printed |
[in] | base | format to be used |
virtual void Print::write |
( |
uint8_t |
b ) |
[pure virtual] |
Virtual function to be implemented by the derived class for the hardware device.
- Parameters:
-
[in] | b | The byte to be sent to the device. |
Implemented in SdFile.
void Print::write |
( |
const uint8_t * |
buffer, |
|
|
size_t |
size |
|
) |
| [virtual] |
default implementation: may be overridden
- Parameters:
-
[in] | buffer | pointer to data |
[in] | size | count of bytes to be written |
void Print::write |
( |
const char * |
str ) |
[virtual] |
default implementation: may be overridden
- Parameters:
-
[in] | str | string to be written |
Reimplemented in SdFile.
The documentation for this class was generated from the following files:
- SdFatDoc/Print/Print.h
- SdFatDoc/Print/Print.cpp