User Manual
6. Orangutan LEDs
The OrangutanLEDs class and the C functions in this section are a very simple interface to the user LEDs
included on Orangutan controllers and 3pi. The Orangutan X2 has five user LEDs (two red, two green, and
one yellow), the Orangutan LV, SV, SVP, and 3pi have two user LEDs (one red and one green), and the Baby
Orangutan has one user LED (red).
On all devices except the Orangutan X2, the red LED is on the same pin as the UART0 serial transmitter (PD1),
so if you are using UART0 for serial transmission then the red LED functions will not work, and you will see
the red LED blink briefly whenever data is transmitted on UART0.
On all devices except the Baby Orangutan, the green LED is on the same pin as an LCD data pin, and the green
LED will blink briefly whenever data is sent to the LCD, but the two functions will otherwise not interfere with
each other. On the Orangutan X2, all the user LEDs are LCD data pins, so they will briefly flash whenever data
is sent to the LCD, and the LCD can sometimes drive these LEDs if the AVR pins they are on are configured
as inputs (their default configuration). To stop the LCD from keeping the LEDs lit, you can use the functions in
this library to explicitly turn them off at the start of your program, which will make the AVR pins driving-low
outputs.
For a higher level overview of this library and example programs that show how this library can be used, please
see Section 3.e of the Pololu AVR C/C++ Library User’s Guide [https://www.pololu.com/docs/0J20].
Pololu AVR Library Command Reference © 2001–2015 Pololu Corporation
6. Orangutan LEDs Page 25 of 65