Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
edirfansaleem
Published © Apache-2.0

Simple Blinking LED (External)

This is a basic tutorial to get you going with Arduiono. You will learn how to make an external LED blink. Simple as that.

BeginnerProtip6,950
Simple Blinking LED (External)

Things used in this project

Story

Read more

Schematics

Blinking LED Diagram

Code

Blinking LED Code

Arduino
This code makes the external LED connected to pin 13
int led = 13; // set the "led" variable as 13
 
void setup() {                
  pinMode(led, OUTPUT);   // designate port 13 as output
}
 
void loop() {
  digitalWrite(led, HIGH);   // turn the led on
  delay(1000);               // wait for 1 second
  digitalWrite(led, LOW);    // turn the led off
  delay(1000);               // wait for a second
}

Credits

edirfansaleem
1 project • 0 followers

Comments