Lab 1- Blink

Submitted by lwang on Wed, 01/30/2013 - 15:28

 

Description

 
This is a basic blinking circuit. I've changed the example code from a 1 second delay to a 0.5 second delay.
 

Components Used

 
  • Arduino UNO
  • 220 Ohm Resistor
  • Red LED
 

Code

 
int led = 13;
 
 
void setup() {                
  
  pinMode(led, OUTPUT);     
}
 
 
void loop() {
  digitalWrite(led, HIGH);   
  delay(500);               
  digitalWrite(led, LOW);    
  delay(500);               
}
 

Images

Lab 1 blink
0
Your rating: None
Drupal theme by Kiwi Themes.