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
Reference
C++ methods are shown in red.
C/C++ functions are shown in green.
static void OrangutanTime::delayMilliseconds(unsigned int milliseconds)
void delay_ms(unsigned int milliseconds)
void delay(unsigned int milliseconds)
Delays for the specified number of milliseconds. Note that if the supplied argument milliseconds has a value of
zero, this function will return execution immediately (unlike delayMicroseconds(0), which will delay for the
maximum time possible).
static void OrangutanTime::delayMicroseconds(unsigned int microseconds)
void delayMicroseconds(unsigned int microseconds)
void delay_us(unsigned int microseconds)
Delays for the specified number of microseconds. Note that if the supplied argument microseconds has a value of
zero, this function will delay for 65536 us (unlike delayMilliseconds(0), which produces no delay at all).
static void OrangutanTime::reset()
void time_reset()
Starts/resets the system timer. This begins using an interrupt on Timer2 to record the elapsed time since reset.
static unsigned long OrangutanTime::ms()
unsigned long get_ms()
unsigned long millis()
Returns the number of elapsed milliseconds since reset. The value can be as high as the maximum value stored in
an unsigned long, 4,294,967,295 ms, which corresponds to a little more than 49 days, after which it starts over at
0.
Pololu AVR Library Command Reference © 2001–2009 Pololu Corporation
2. Timing and Delays Page 4 of 35










