User Manual
Prints a single ASCII character to the display at the current cursor position. This is the same as the unsigned
char version above.
Example:
print_character('A');
// in C++: OrangutanLCD::print('A');
static void OrangutanLCD::print(const char *str)
void print(const char *str)
Prints a zero-terminated string of ASCII characters to the display starting at the current cursor position. The
string will not wrap or otherwise span lines.
Example:
print("Hello!");
// in C++: OrangutanLCD::print("Hello!");
static void OrangutanLCD::printFromProgramSpace(const char *str)
void print_from_program_space(const char *str)
Prints a string stored in program memory. This can help save a few bytes of RAM for each message that your
program prints. Even if you use the normal print() function, the strings will be initially stored in program space
anyway, so it should never hurt you to use this function.
Example:
#include <avr/pgmspace.h>
const char hello[] PROGMEM = "Hello ";
void someFunction()
{
print_from_program_space(hello);
// in C++: OrangutanLCD::printFromProgramSpace(hello);
print_from_program_space(PSTR("there!"));
// in C++: OrangutanLCD::printFromProgramSpace(PSTR("there!"));
}
static void OrangutanLCD::print(int value)
Prints the specified signed integer (2-byte) value to the display at the current cursor position. It will not wrap
or otherwise span lines. There is no C version of this method, but print_long(value) should be sufficient.
Example:
OrangutanLCD::print(-25);
// in C: print_long(-25);
static void OrangutanLCD::print(long value)
void print_long(long value)
Prints the specified signed long (4-byte) value to the display at the current cursor position. It will not wrap or
otherwise span lines.
static void OrangutanLCD::print(unsigned int value)
Prints the specified unsigned integer (2-byte) value to the display at the current cursor position. The value will
not wrap or otherwise span lines and will always be positive.
static void OrangutanLCD::print(unsigned long value)
void print_unsigned_long(unsigned long value)
Pololu AVR Library Command Reference © 2001–2015 Pololu Corporation
5. Orangutan LCD Page 22 of 65