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. |
|
Initialize the board. Initializes the components specified by config.
|
|
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). |