int sen1=11;int sen2=12;int sen13=13;void setup() {    // initialize the digital pin as an output.    // Pin 13 has an LED...
digitalWrite(13, HIGH);    delay(1000);      digitalWrite(11, LOW);digitalWrite(12, LOW);digitalWrite(13, LOW);    delay(1...
Upcoming SlideShare
Loading in …5
×

Led program

146 views
127 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
146
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Led program

  1. 1. int sen1=11;int sen2=12;int sen13=13;void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(11, OUTPUT);pinMode(12, OUTPUT);pinMode(13, OUTPUT);}void loop() { digitalWrite(11, HIGH);digitalWrite(12, LOW);digitalWrite(13, LOW); delay(1000); digitalWrite(12, HIGH); digitalWrite(13, LOW); digitalWrite(11,LOW); delay(1000); digitalWrite(11, LOW);digitalWrite(12, LOW);digitalWrite(13, HIGH); delay(1000); digitalWrite(11, HIGH);digitalWrite(12, HIGH);
  2. 2. digitalWrite(13, HIGH); delay(1000); digitalWrite(11, LOW);digitalWrite(12, LOW);digitalWrite(13, LOW); delay(1000);}

×