Changes

Jump to: navigation, search

Classes/2010/VIS147A/Lab7

79 bytes added, 16:44, 23 February 2010
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.

Navigation menu