Dragonfly

General Dragonfly Functions General functions for the dragonfly. Include dragonfly_lib.h to access these functions. More...

Defines

#define ANALOG   0x01
 Initialize analog.
#define SERIAL   0x02
 Initialize serial communications.
#define USB   0x02
 Initialize USB communications.
#define COMM   0x02
 Initialize communications.
#define ORB   0x04
 Initialize the orb.
#define MOTORS   0x08
 Initialize the motors.
#define SERVOS   0x10
 Initialize the servos.
#define I2C   0x20
 Initialize I2C.
#define BUZZER   0x40
 Initialize the buzzer.
#define LCD   0x80
 Initialize the LCD screen.
#define ALL_ON   0xFF
 Initialize everything.

Functions

void dragonfly_init (int config)
 Initialize the board.
void reset (void)
 Reset the robot.

Detailed Description

General Dragonfly Functions General functions for the dragonfly. Include dragonfly_lib.h to access these functions.


Function Documentation

void dragonfly_init int  config  ) 
 

Initialize the board.

Initializes the components specified by config.

See also:
analog_init, usb_init, xbee_init, buzzer_init, bom_init, orb_init, motors_init, lcd_init

void reset void   ) 
 

Reset the robot.

Resets the AVR when called. Sets the watchdog timer and lets it overflow to reset the AVR. The reset clears all memory and resets all registers with the exception of the Watchdog Reset Flag (WDRF) in the MCU Control and Status Register (MCUCSR).


Generated on Fri Sep 14 15:36:18 2007 for libdragonfly by  doxygen 1.4.6