Datasheet
Chapter 1 • Your Shield-Bot’s Brain
22 • Robotics with the BOE Shield-Bot
Modify the Sketch to Repeat
Microcontroller programs generally run in a loop, meaning that one or more statements are
repeated over and over again. Remember that the
loop function automatically repeats any
code in its block (the statements in between its curly braces).
Let’s try moving
Serial.print("Hello!"); to the loop function. To slow down the rate
at which the messages repeat, let’s also add a pause with the built-in
delay(ms) function.