Lab 1 - Blink

Submitted by ashams on Wed, 01/30/2013 - 15:17

 

Description

 
This is a basic blinking circuit. I have changed the example code from a 1 second delay to a 0.1 second delay (blinks faster).
 

Components Used

 
  • Arduino UNO
  • 220 Ohm Resistor
  • Green LED
 

Code

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

Images

 

 

My blinking board
0
Your rating: None
Drupal theme by Kiwi Themes.