Activity 10: Simplify the Square
Remember the square activity we did in Activity 9? For our next activity we want to
show you a more efficient way to code the same behavior.
Figure 23
Parts Needed
• Fully assembled PRIZM TaskBot
• USB cable
• A charged TETRIX 12-Volt Rechargeable
NiMH Battery Pack
• Computer
Opening the Sketch
Before we open our next example sketch, be sure to save any sketch you want to
reference later.
Open the sketch by selecting File > Examples > TETRIX_PRIZM > TaskBot_Act10_
Drive_Square_2. A new sketch window will open titled TaskBot_Act10_Drive_
Square_2 (Figure 23).
Building and Coding the PRIZM TaskBot 93