Tampilkan angka 7 delay 1 detik lalu angka 8.
Tampilkan angka 7 delay 1 detik lalu angka 8.
3. Flowchart [Kembali]
4. Listing Program [Kembali]
byte pin[] = {2, 3, 4, 5, 6, 7, 8, 9};
void setup() {
for (int i = 0; i < 9; i++)
{
pinMode (pin[i], OUTPUT);
}
}
void loop() {
digitalWrite (2, HIGH);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
digitalWrite (7, HIGH);
digitalWrite (8, HIGH);
digitalWrite (9, HIGH);
delay(1000);
digitalWrite (2, HIGH);
digitalWrite (3, HIGH);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, HIGH);
digitalWrite (7, HIGH);
digitalWrite (8, HIGH);
digitalWrite (9, HIGH);
delay(1000);
}
6. Link Download [Kembali]
6. Link Download [Kembali]
2. Gambar Rangkaian
Tidak ada komentar:
Posting Komentar