AVR Library Command Reference
Table Of Contents
- Pololu AVR Library Command Reference
- 1. Introduction
- 2. Timing and Delays
- Reference
- 3. Orangutan Analog-to-Digital Conversion
- Reference
- 4. Orangutan Buzzer: Beeps and Music
- Reference
- 5. Orangutan LCD
- Reference
- 6. Orangutan LEDs
- Reference
- 7. Orangutan Motor Control
- Reference
- 8. Orangutan Pushbuttons
- Reference
- 9. Orangutan Serial Port Communication
- Reference
- 10. Orangutan System Resources
- 11. QTR Reflectance Sensors
- Reference
- 12. 3pi Robot Functions
- 13. Wheel Encoders
- Reference
5. Orangutan LCD
The OrangutanLCD class and the C functions in this section provide a variety of ways of displaying data to the LCD
screen of an Orangutan SV-168, Orangutan LV-168, and 3pi, providing an essential tool for user interfaces and
debugging. The library implements the standard 4-bit HD44780 protocol, and it uses the busy-wait-flag feature to
avoid the unnecessarily long delays present in other 4-bit LCD Arduino libraries. It is designed to gracefully handle
alternate use of the four LCD data lines. It will change their data direction registers and output states only when
needed for an LCD command, after which it will immediately restore the registers to their previous states. This
allows the LCD data lines to function, for example, as pushbutton inputs and an LED driver on the 3pi and
Orangutans.
For C and C++ users, the standard C function printf() is made available. See below for more information.
For a higher level overview of this library and example programs that show how this library can be used, please see
Section 5.c of the guide to Programming Orangutans from the Arduino Environment [http://www.pololu.com/docs/
0J17] or Section 6.e of the Pololu AVR C/C++ Library User’s Guide [http://www.pololu.com/docs/0J20].
Pololu AVR Library Command Reference © 2001–2009 Pololu Corporation
5. Orangutan LCD Page 12 of 35










