LED Fun!!! Arduino Knight Rider LED Circuit Sequential Control using For Loop - Arduino tutorial # 3

preview_player
Показать описание

Sequential Control of LEDs... Fun with LEDs blinking in series in different time delays, and different orders in real time environment. A knight Rider circuit of 5 LEDs are driven by Arduino using for loop iteration. The code looks short & sweet since the for looping is performed in it. The LEDs are illuminated in different time delays, and different directions as well (Left to Right & Right to Left) using various coding techniques. Specially the looping... It works like magic. Enjoy the video with detailed explanations and demonstration. And find the codings I used (2 different codings) in FIRST TWO COMMENTS of the video. Please comment your suggestions. :D
Рекомендации по теме
Комментарии
Автор

// Second Code://



void setup() {
// put your setup code here, to run once:
for(int x=1; x<=5;x++)
pinMode(x, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
for(int y=5;y>=1;y--)
{
digitalWrite(y, HIGH);
delay(100);
digitalWrite(y, LOW);
}

}

NovaTechnologies
join shbcf.ru