Hackster will be offline on Monday, September 30 from 8pm to 10pm PDT to perform some scheduled maintenance.
arohansenroy
Published © GPL3+

Blinking LED

In this tutorial, we will start the journey of learning Arduino UNO R3. To begin, let's learn how to make an LED blink.

BeginnerFull instructions provided41,744
Blinking LED

Things used in this project

Story

Read more

Schematics

Blinking LED

Code

code

Arduino
/***********************************************************
File name:   01_blinkingLed.ino
Description: LED blinks ON and OFF.
Website: www.quadstore.in
***********************************************************/
int ledPin=8; //definition digital 8 pins as pin to control the LED
void setup()
{
    pinMode(ledPin,OUTPUT);    //Set the digital 8 port mode, OUTPUT: Output mode
}
void loop()
{  
    digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8
    delay(1000);               //Set the delay time, 1000 = 1S
    digitalWrite(ledPin,LOW);  //LOW is set to about 5V PIN8
    delay(1000);               //Set the delay time, 1000 = 1S
} 

Credits

arohansenroy

arohansenroy

2 projects • 2 followers

Comments