1. hardware[Kembali]
2. Rangkaian Simulasi[Kembali]
3. Flowchart[Kembali]
4. Listing Program[Kembali]
int led [ ] = {2, 3, 4, 5, 6, 7, 8, 9};
void setup()
{
8; increase
{
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. Kondisi[Kembali]
Menghidupkan LED 2,3,6,7 atau mematikan LED 1,4,5,8
Tidak ada komentar:
Posting Komentar