Changes

Jump to: navigation, search

Classes/2010/VIS147A/Lab7

352 bytes added, 15:45, 23 February 2010
Simple Digital Out
=== Simple Digital Out ===
# * Set up an LED on external board, check that it worksthe breadboard with a current limiting resistor. [[Image:Led_output.png|400px]][[Image:Led_out_on_breadboard.jpg|400px]]# * Connect the LED to one of your Digital Out pins.(Pins 0-13 on the "Digital" side of your board, by the power light.)[[Image:Led_output.png|400px]][[Image:Led_out_on_breadboard.jpg|400px]]''Basic LED Driver''# change * Change the Blink program (from Sketchbook->Examples->Digital) to output to that pin you connected.# ** use <code>pinMode()</code> to set your Digital Output pin to be an <code>OUTPUT</code>.** use <code>digitalWrite()</code> to the correct pin to turn on (or turn off) the LED.* Compile, upload, and run itthe program.... Does it work?# try changing * Change the timing in some more interesting/meaningful way. (HINT: the <code>delay(1000)</code> statement in the Blink exampleis what sets the time on and time off). Using what you know, create a different pattern or sequence of activation for the LED.
=== Simple Digital In ===

Navigation menu