Changes

Jump to: navigation, search

Classes/2010/VIS147A/Lab7

102 bytes added, 16:32, 23 February 2010
Part 4 - Multiple Digital Outputs
* Set up six or more digital LED outputs similar to those in part 1. (work in pairs if you would like)
[[Image:Three_lights.jpg|400px]]
* You could set these up as a dot matrix display (say 2 X 3 or 3 X 2 or 3 X 3) rather than in a line.
* 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