How to Make a VIP Light đ¨ at home| Easy DIY
Hi Freinds in this vedio im going to talk about ow to Make a VIP Light đ¨ at home code for the project below
link to the vedio https://www.youtube.com/watch?v=oCYRS_5Yfus
Don't click this https://bit.ly/3nD9rFX
Code :-
void setup() {
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
}
int red = 2;
int blue = 3;
int time = 100;
int time2 = 50;
int time3 = 300;
void loop() {
//Patern 1
digitalWrite(red, HIGH);
delay(time);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time);
digitalWrite(blue, LOW);
delay(1000);
//Patern 2
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(red, HIGH);
delay(time2);
digitalWrite(red, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
digitalWrite(blue, HIGH);
delay(time2);
digitalWrite(blue, LOW);
delay(150);
//Patern 3
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
digitalWrite(red, HIGH);
digitalWrite(blue, HIGH);
delay(time3);
digitalWrite(red, LOW);
digitalWrite(blue, LOW);
delay(time3);
}
well done son
ReplyDelete