Public Member Functions

Print Class Reference

The Arduino core Print class. More...

#include <Print.h>

Inheritance diagram for Print:
Inheritance graph
[legend]

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]sthe string to be printed
void Print::print ( const char  str[] )

Write a string to the associated device.

Parameters:
[in]strthe string to be printed
void Print::print ( int  n,
int  base = DEC 
)

Write an signed number to the associated device in ASCII.

Parameters:
[in]nthe number to be printed
[in]baseformat to be used
void Print::print ( unsigned int  n,
int  base = DEC 
)

Write an unsigned number to the associated device in ASCII.

Parameters:
[in]nthe number to be printed
[in]baseformat to be used
void Print::print ( long  n,
int  base = DEC 
)

Write an signed number to the associated device in ASCII.

Parameters:
[in]nthe number to be printed
[in]baseformat to be used
void Print::print ( unsigned long  n,
int  base = DEC 
)

Write an unsigned number to the associated device in ASCII.

Parameters:
[in]nthe number to be printed
[in]baseformat to be used
void Print::print ( char  c,
int  base = BYTE 
)

Write an signed byte to the associated device in ASCII.

Parameters:
[in]cthe byte to be printed
[in]baseformat 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]nthe number to be printed
[in]digitsthe 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]bthe byte to be printed
[in]baseformat 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]nthe number to be printed
[in]baseformat to be used
void Print::println ( const String &  s )

Write a string to the associated device followed by CR LF.

Parameters:
[in]sthe 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]nthe number to be printed
[in]digitsthe 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]bthe byte to be printed
[in]baseformat 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]nthe number to be printed
[in]baseformat to be used
void Print::println ( void   )

Print CR LF

void Print::println ( long  n,
int  base = DEC 
)

Write an signed number to the associated device in ASCII followed by CR LF.

Parameters:
[in]nthe number to be printed
[in]baseformat to be used
void Print::println ( const char  c[] )

Write a string to the associated device followed by CR LF.

Parameters:
[in]cthe 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]nthe number to be printed
[in]baseformat 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]cthe byte to be printed
[in]baseformat 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]bThe 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]bufferpointer to data
[in]sizecount of bytes to be written
void Print::write ( const char *  str ) [virtual]

default implementation: may be overridden

Parameters:
[in]strstring to be written

Reimplemented in SdFile.


The documentation for this class was generated from the following files: