1. Kondisi[kembali]
Percobaan 1 Kondisi 1:
Kondisi awal LED mati lalu hidup bergantian dari kiri ke kanan secara berulang.
2. Rangkaian Simulasi[kembali]
3. Flowchart[kembali]
4. Listing Program[kembali]
int led [ ] = {2, 3, 4, 5, 6, 7, 8, 9};
void setup()
{
for (int i = 0; i < 8; i++)
{
pinMode (led[i], OUTPUT);
}
}
void loop() {
for (int hidup = 0; hidup < 8; hidup++)
{
digitalWrite(led[hidup], HIGH);
delay(100);
}
delay(100);
for (int mati = 0; mati < 8; mati++)
{
digitalWrite(led[mati], LOW);
delay(100);
}
delay(100);
}
5. Video[kembali]
6. Link Download[kembali]
File Percobaan Proteus disini
File Program Arduino disini
Video Simulasi disini
Library Arduino disini
Datasheet Arduino disini
HTML disini
Tidak ada komentar:
Posting Komentar