1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

fixed order in how the commands were executed

This commit is contained in:
dcuartielles 2013-05-16 15:23:42 +02:00 committed by Cristian Maglie
parent eab4a7ef72
commit e5baff7372

View File

@ -33,12 +33,6 @@ void setup() {
Robot.drawBMP("lf.bmp", 0, 0); // display background image
// These are some general values that work for line following
Robot.lineFollowConfig(11, 5, 50, 10);
//set the motor board into line-follow mode
Robot.setMode(MODE_LINE_FOLLOW);
Robot.playFile("chase.sqm"); // play a song from the SD card
// add the instructions
@ -46,6 +40,12 @@ void setup() {
Robot.text("Press the middle\n button to start...", 5, 61);
Robot.waitContinue();
// These are some general values that work for line following
Robot.lineFollowConfig(11, 5, 50, 10);
//set the motor board into line-follow mode
Robot.setMode(MODE_LINE_FOLLOW);
// start
Robot.fill(255, 255, 255);
Robot.stroke(255, 255, 255);