/* Example 1 - drive-turn.ic Waits for START button, then robot drives and turns. Prints message on display when done */ void main() { printf("Press START\n"); // message for human... start_press(); // wait for START button press motor(1, 50); // turn on motor 1, half speed motor(2, 50); // turn on motor 2, half speed sleep(3.5); motor(2, -50); // reverse motor 2, half speed sleep(1.0); // motor 1 still runs - turn robot ao(); // stop all motors (All Off) printf("Done!\n"); // inform human... } // this bracket ends the program