Changes

Week 2 Lab

329 bytes added, 15:55, 7 April 2009
Loop (Optional)
# Open the button example (File->Sketchbook->Examples->Digital->Button)
# Connect your switch circuit to on if the digital I/O pins, and change <code>inputPin</code> in the button program to this number. (Mine is Pin 7)
 
=== Changing the Pattern ===
* In the simple blink exampe, this code here:
<code> digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
</code>
* is what sets the timing.
=== Loop (Optional) ===