Khaled Md Saifullah
Published © MIT

Arduino Basic Project-#2

In this project we are going to demonstrate how we can blink LED using Arduino UNO.

BeginnerFull instructions provided-30 minutes540
Arduino Basic Project-#2

Things used in this project

Story

Read more

Schematics

Arduino-Basic-Project-#2

Code

Arduino-Basic-Project-_2.ino

C/C++
//Date:27/07/2021
//Name: Khaled Saifullah
//MakerBuddy
//Dhaka,Bangladesh

int greenLed = 4;
int redLed = 3;
int yellowLed = 2;

void setup()
{
  pinMode(yellowLed, OUTPUT);
  pinMode(redLed, OUTPUT);
  pinMode(greenLed, OUTPUT);
}

void loop()
{
  digitalWrite(greenLed, HIGH);
  digitalWrite(redLed, HIGH);
  digitalWrite(yellowLed, HIGH);
  delay(1000); // Wait for 1000 millisecond(s)
  digitalWrite(greenLed, LOW);
  digitalWrite(redLed, LOW);
  digitalWrite(yellowLed, LOW);
  delay(1000); // Wait for 1000 millisecond(s)
}

Credits

Khaled Md Saifullah
18 projects • 44 followers
🦸Tech Enthusiast 👨🏾‍💻Programmer 📳IoT Specialist
Contact

Comments

Please log in or sign up to comment.