Tugas Pendahuluan Modul 1
[KEMBALI KE MENU SEBELUMNYA]
1. Kondisi [Kembali]
Perbobaan 1 kondisi 4 = Kondisi awal LED mati lalu hidup bergantian dari tengah ke pinggir secara berulang.
2. Rangkaian Simulasi [Kembali]
Gambar rangkaian percobaan 1
Gambar rangkaian simulasi LED hidup dari tengah ke kiri
3. Flowchart [Kembali]
4.listing program [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);
}
}
5. Video Simulas [Kembali]
6. Link Download [Kembali]
File Rangkaian [Download]
File Listing Program [Download]
File Video [Download]
File Flowchart [Download]
File Library Arduino = [Download]
File Data Sheet Arduino = [Download]
File Html = [Download]
Tidak ada komentar:
Posting Komentar