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

virtual void write (uint8_t b)
void print (char)
void print (const char[])
void print (uint8_t)
void print (int)
void print (unsigned int)
void print (long)
void print (unsigned long)
void print (long, int)
void println (void)
void println (char)
void println (const char[])
void println (uint8_t)
void println (int)
void println (unsigned int)
void println (long)
void println (unsigned long)
void println (long, int)


Detailed Description

The Arduino core Print class.

Member Function Documentation

virtual void Print::write ( uint8_t  b  )  [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.

Reimplemented in Fat16.

void Print::print ( char  c  ) 

Write a byte to the associated device.

Parameters:
[in] c the byte to be written

void Print::print ( const char  c[]  ) 

Write a string to the associated device.

Parameters:
[in] c the string to be printed

void Print::print ( uint8_t  b  ) 

Write a byte to the associated device.

Parameters:
[in] b the byte to be written

void Print::print ( int  n  ) 

Write the decimal representation of a signed number to the associated device in ASCII.

Parameters:
[in] n the number to be printed

void Print::print ( unsigned int  n  ) 

Write the decimal representation of an unsigned number to the associated device in ASCII.

Parameters:
[in] n the number to be printed

void Print::print ( long  n  ) 

Write the decimal representation of a signed number to the associated device in ASCII.

Parameters:
[in] n the number to be printed

void Print::print ( unsigned long  n  ) 

Write the decimal representation of a unsigned number to the associated device in ASCII.

Parameters:
[in] n the number to be printed

void Print::print ( long  n,
int  base 
)

Write the representation of a number, in the specified base, to the associated device in ASCII.

Note:
If the base is specified as zero, the number is written as a single byte by calling print((char)n).
Parameters:
[in] n the number to be printed
[in] base the base for the ASCII representation

void Print::println ( void   ) 

Print CR LF

void Print::println ( char  c  ) 

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

Parameters:
[in] c the byte to be written

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 ( uint8_t  b  ) 

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

Parameters:
[in] b the byte to be written

void Print::println ( int  n  ) 

Write the decimal representation of a signed number to the associated device in ASCII followed by CR LF.

Parameters:
[in] n the number to be printed

void Print::println ( unsigned int  n  ) 

Write the decimal representation of an unsigned number to the associated device in ASCII followed by CR LF.

Parameters:
[in] n the number to be printed

void Print::println ( long  n  ) 

Write the decimal representation of a signed number to the associated device in ASCII followed by CR LF.

Parameters:
[in] n the number to be printed

void Print::println ( unsigned long  n  ) 

Write the decimal representation of an unsigned number to the associated device in ASCII followed by CR LF.

Parameters:
[in] n the number to be printed

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

Write the representation of a number, in the specified base, to the associated device in ASCII followed by CR LF.

Note:
If base is specified as zero, the number is written as a single byte by calling print((char)n).
Parameters:
[in] n the number to be printed
[in] base the base for the ASCII representation


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

Generated on Thu Oct 9 08:22:19 2008 for Fat16 by  doxygen 1.5.6