Changes

Jump to: navigation, search

Classes/2010/VIS147A/Lab7

58 bytes removed, 16:35, 23 February 2010
no edit summary
* Connect your switch circuit to one of the digital I/O pins on your Freeduino, and change <code>inputPin</code> in the button program to correspond to this pin. (Mine is Digital Pin #7)
* Compile, upload and run the Button program, verify that it works. You should see your external LED blinking in time with the program.
 === Part 3 - Notes on Programming ======= Digital In code Code ====
* In the Button example above, we do some setup
<code>
* As you desire more complicated behavior, your program is going to get ridiculous very soon, with endless lists of <code>digitalWrite()</code> and <code>if</code> statements. There are more efficient ways to do this... for instance using <code>for</code> loops, <code>switch</code> statements, and arrays.
=== Part 4 3 - 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]]

Navigation menu