#include <tucbot/tucbot.h>
void testMode(void);
int main(void);
void testMode(void) {
while (1) {
} else {
}
}
default :
lcdstr_p(PSTR(
"#######" ));
break;
}
}
}
}
int main (void) {
testMode();
return (0);
}
void leds_set(eLedMask bitmask, uint8_t bool)
Sets the selected leds on or off.
@ kModeStudent
constant (1): robot is in student mode
Definition: mode.h:31
@ kLedOn
constant (0xFF): turn leds on
Definition: leds.h:63
@ kLedRight
bit mask (0x04): right led
Definition: leds.h:46
@ kModePupil
constant (0): robot is in pupil mode
Definition: mode.h:29
eMode mode_get(void)
Returns the last stored mode of the TUC-Bot.
@ kRequestContinuous
constant (3): request continuous updates
Definition: update.h:37
void mode_request(eRequestType request)
Requests new data from the mode of the TUC-Bot.
@ kLedMiddle
bit mask (0x08): middle led
Definition: leds.h:44
@ kLedOff
constant (0x00): turn leds off
Definition: leds.h:61
void lcdclr(void)
Clears the display.
void lcdxy(uint8_t x, uint8_t y)
Moves the cursor to a postion on the display.
@ kRequestSingle
constant (1): request a single update
Definition: update.h:33
void mode_set(eMode mode)
Sets the mode of the TUC-Bot.
uint8_t mode_received(void)
Indicates if new data for the data block sMD_Mode was received.
void lcdstr_p(const char *send_data)
Writes a string located in the flash to the display.
void init_tucbot(uint8_t enable_interrupts)
Initiates the TUC-Bot.
void mdelay(uint16_t mseconds)
Waits for the given time in milliseconds.