User Manual

Example:
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:
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)
Prints the specified unsigned long (4-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::printHex(unsigned int value )
void print_hex(unsigned int value)
Prints the specified two-byte value in hex to the display at the current cursor position. The value will
not wrap or otherwise span lines.
static void OrangutanLCD::printHex(unsigned char value )
void print_hex_byte(unsigned char value)
Prints the specified byte value in hex to the display at the current cursor position. The value will not
wrap or otherwise span lines.
static void OrangutanLCD::printBinary(unsigned char value)
1
2
3
4
5
6
7
8
9
10
#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!"));
}
1
2
OrangutanLCD::print(-25);
// in C: print_long(-25);
?
?
Pololu AVR Library Command Reference © 2001–2019 Pololu Corporation
5. Orangutan LCD Page 27 of 77