LED Fun!!! Arduino Knight Rider LED Circuit Sequential Control using For Loop - Arduino tutorial # 3
HTML-код
- Опубликовано: 4 окт 2024
- Arduino Robotic Online Individual Classes (via skype) with Practical Explanations, Contact me on: nik261190@gmail.com
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=1;y--)
{
digitalWrite(y,HIGH);
delay(100);
digitalWrite(y,LOW);
}
}
// First Code://
void setup() {
// put your setup code here, to run once:
for(int x=1; x