5,710
edits
Changes
→Part 3 - For Loop, Iteration
=== Part 3 - For Loop, Iteration ===
==== Hardware ====
* multiple LEDs, multiple 220 Ohm resistors
[[Image:Three_lights.jpg|400px]]
==== Code ====
* Open File->Sketchbook->Examples->Control->ForLoopIteration. This program is similar to the single input above, however with multiple outputs at once. It uses a <code>loop</code> statement to run across a series of pins rather than having to write each output as a separate line.
* Compile, upload, and run the loop example.