From chipKIT
Jump to: navigation, search
Quick Look
Hardware (External hardware)
Core Print.h

Print is an Internal Class used throughout various libraries such as HardwareSerial and SoftwareSerial as well as others.

Detailed Introduction

The Print Class is an Internal Class which provides functions used to assist in printing of various data formats as ASCII characters. This class would not typically be used directly from your Arduino Sketch.

Full class usage



Name Default Value Description
BIN 2 Binary Base
OCT 8 Octal Base
DEC 10 Decimal Base
HEX 16 Hexadecimal Base

Public Functions


  int getWriteError();


  void clearWriteError();


write(const char *str)
  size_t write(const char *str);
write(const char *buffer, size_t size)
  size_t write(const char *buffer, size_t size);


print(const String &)
    size_t print(const String &);
print(const char[])
    size_t print(const char[]);
    size_t print(char);
print(unsigned char, int = DEC)
    size_t print(unsigned char, int = DEC);
print(int, int = DEC)
    size_t print(int, int = DEC);
print(unsigned int, int = DEC)
    size_t print(unsigned int, int = DEC);
print(long, int = DEC)
    size_t print(long, int = DEC);
print(unsigned long, int = DEC)
    size_t print(unsigned long, int = DEC);
print(double, int = 2)
    size_t print(double, int = 2);
print(const Printable&)
    size_t print(const Printable&);


println(const String &s)
    size_t println(const String &s);
println(const char[])
    size_t println(const char[]);
    size_t println(char);
println(unsigned char, int = DEC)
    size_t println(unsigned char, int = DEC);
println(int, int = DEC)
    size_t println(int, int = DEC);
println(unsigned int, int = DEC)
    size_t println(unsigned int, int = DEC);
println(long, int = DEC)
    size_t println(long, int = DEC);
println(unsigned long, int = DEC)
    size_t println(unsigned long, int = DEC);
println(double, int = 2)
    size_t println(double, int = 2);
println(const Printable&)
    size_t println(const Printable&);
    size_t println(void);
printf(const char *fmt, ...)
    size_t printf(const char *fmt, ...);

External Links

List some links to external resources, such as: