Assignment #1: Blink LED

Submitted by euiyoungkim on Wed, 01/30/2013 - 19:22

Assignment # 1: Blink LED

Description

As it was my first experience making an Arduino board, I followed the BLINK example under the File / Examples / Basics  folder by setting blinking time for 0.1 second, then turn off for 5 second, repeatedly.

Components

1. Arduino UNO

2. Breadboard

3. Red/Red/Brown/Gold Resistor

4. Green LED

Code

 

int led = 13;
void setup() {                
  pinMode(led, OUTPUT);     
}
void loop() {
  digitalWrite(led, HIGH);  
  delay(100);               
  digitalWrite(led, LOW);    
  delay(5000);               
}
 
Photo
 
 
assignment 1_0.jpg
0
Your rating: None
Drupal theme by Kiwi Themes.