AVR Library Command Reference

Reference
C++and Arduino methods are shown in red.
C functions are shown in green.
static void OrangutanLEDs::red(unsigned char state)
void red_led(unsigned char state)
This method will turn the red user LED off if state is zero, otherwise it will turn the red user LED on. You can use
the Arduino keyword HIGH as an argument to turn the LED on, and you can use the Arduino keyword LOW as
an argument to turn the LED off.
Example:
OrangutanLEDs::red(0); // turn the red LED on
static void OrangutanLEDs::left(unsigned char state)
void left_led(unsigned char state)
This method is an alternate version of red(). The red LED is on the left side of the 3pi robot.
static void OrangutanLEDs::green(unsigned char state)
void green_led(unsigned char state)
This method will turn the green user LED off if state is zero, otherwise it will turn the green user LED on. Within
the Arduino environment, you can use the Arduino keyword HIGH as an argument to turn the LED on, and you
can use the Arduino keyword LOW as an argument to turn the LED off. This method will not work on the Baby
Orangutan as it does not have a green user LED.
Example:
OrangutanLEDs::green(1); // turn the green LED on
static void OrangutanLEDs::right(unsigned char state)
void right_led(unsigned char state)
This method is an alternate version of green(). The green LED is on the right side of the 3pi robot.
Pololu AVR Library Command Reference © 2001–2009 Pololu Corporation
6. Orangutan LEDs Page 17 of 35