Sarthak Roy
Published © GPL3+

LED To and Fro

Four LEDs blik alternatively to give a to and fro blinking

BeginnerFull instructions provided19 minutes369
LED To and Fro

Things used in this project

Story

Read more

Schematics

hacksterproj1_PZnrTL7tWn.pdsprj

Code

sketch_jun28a.ino

C/C++
void setup()
{pinMode(13,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
pinMode(6,OUTPUT);
pinMode(5,OUTPUT);
pinMode(3,OUTPUT);
pinMode(2,OUTPUT);

}
void loop()
{digitalWrite(10,0);
digitalWrite(6,0);
digitalWrite(3,0);
  digitalWrite(13,1);
delay(500);
digitalWrite(13,0);
digitalWrite(9,1);
delay(500);
digitalWrite(9,0);
digitalWrite(5,1);
delay(500);
digitalWrite(5,0);
digitalWrite(2,1);
delay(500);
digitalWrite(2,0);
digitalWrite(5,1);
delay(500);
digitalWrite(5,0);
digitalWrite(9,1);
delay(500);
digitalWrite(9,0);

}

Credits

Sarthak Roy

Sarthak Roy

0 projects • 0 followers
I am studying Electronics and Telecommunication Engineering(3rd yr) at Jadavpur University.I am interested in arduino.

Comments