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)
virtual void  write (const char *str)
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  print (double)
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)
void  println (double)

Detailed Description

The Arduino core Print class.


Member Function Documentation

void Print::print ( double  n  ) 

Write the decimal representation of an float or double 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::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  ) 

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

Write a byte to the associated device.

Parameters:
[in]  b  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 ( char  c  ) 

Write a byte to the associated device.

Parameters:
[in]  c  the byte to be written
void Print::println ( double  n  ) 

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
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
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  ) 

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 ( 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 ( 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 ( 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 ( char  c  ) 

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

Parameters:
[in]  c  the byte to be written
void Print::println ( void   ) 

Print CR LF

virtual void Print::write ( const char *  str  )  [virtual]

Virtual function that may be reimplemented by the derived class for the hardware device.

Parameters:
[in]  str  The string to be sent to the device.

Reimplemented in SdFile.

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 SdFile.


The documentation for this class was generated from the following files:
  • SdFatDoc/Print/Print.h
  • SdFatDoc/Print/Print.cpp

Generated on Wed Dec 23 08:22:21 2009 for SdFat by  doxygen 1.6.1