Arduino GLCD Library Version 3

Arduino print Functions

All of the Arduino print functions can be used in this library, see: Serial Print Functions

The functions work with any selected font. All of these functions print from the current cursor position

See also:
CursorTo(), CursorToXY()
GLCD.print(character);     // prints the character at the current cursor position
GLCD.print(integer);       // prints the decimal value of the integer 
GLCD.print(integer,DEC);   // as above 
GLCD.print(integer, HEX);  // prints the hexadecimal value of the integer 
GLCD.print(integer, OCT) ; // prints the octal value of the integer
GLCD.print(integer, BIN) ; // prints the binary value of the integer
GLCD.print(integer, BYTE); // prints the ASCII character represented by the integer 
GLCD.print(float);         // prints a floating point number using two decimal places
GLCD.print(float, digits); // prints a floating point number using the given number of digits after the decimal point
GLCD.print(string);        // prints the string

The println variants of these functions are also supported:

  GLCD.println(variable);  // will wrap to the next line at the end of the print.  

Printing strings can consume a lot of RAM. Printing strings using the flashStr prefix results in the compiler using flash rather than RAM to store the string

  GLCD.print("string");             // string stored in RAM: the compiler reserves 7 bytes of RAM (string length + 1) to store the string
  GLCD.print(flashStr("string") );  // stores the string in Flash memory (Progmem) , no RAM  is used to store the string
  GLCD.println(flashStr("another string") );  // as above, but wraps following text to the next line
 All Classes Functions Variables