adityarobinanjanical
Published © LGPL

Blink LED

The easiest project for making an LED blink.

BeginnerShowcase (no instructions)553
Blink  LED

Things used in this project

Story

Read more

Schematics

How it should be connected .

Code

Blink LED

Arduino
//Blinking LED

const int LED = 13; // LED connected to
                   //  digital pin 13

void setup()
{
  pinMode(LED, OUTPUT);   // sets the digital
                         // pin as output  
}

void loop()
{
  digitalWrite(LED, HIGH);    //turns on the LED on
  delay(1000);               // waits for a second
  digitalWrite(LED, LOW);   // turns the LED off
  delay(1000);             // waits for a second
}

Credits

adityarobinanjanical
1 project • 1 follower

Comments