1. Kondisi [Kembali]
Kondisi awal LED mati lalu hidup bergantian dari tengah ke pinggir secara berulang.
2. Gambar Rangkaian Simulasi [Kembali]
4. Listing Program [Kembali]
5. Video Simulasi [Kembali]
int led [ ] = {2, 3, 4, 5, 6, 7, 8, 9};
void setup()
{
for (int i = 0; i <= 7; i++)
{
pinMode (led[i], OUTPUT);
}
}
void loop(){
for (int hidup = 3; hidup >= 0; hidup--)
{
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for (int mati = 3; mati >= 0; mati--)
{
digitalWrite(led[mati], LOW);
delay(100);
}
delay(100);
for (int hidup = 4; hidup <= 7; hidup++)
{
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for (int mati = 4; mati <= 7; mati++)
{
digitalWrite(led[mati], LOW);
delay(100);
}
}
6. Link Download [Kembali]
File percobaan proteus download
File program arduino download
Video simulasi download
Library arduino download
Datasheet Arduino download
HTML download
Tidak ada komentar:
Posting Komentar