1. Kondisi [kembali]
Tambahkan push button pada input, ketika push button ditekan seluruh led 2,4,6,8 hidup
2. Rangkaian Simulasi [kembali]
3. Flowchart [kembali]
4. Listing Program [kembali]
byte pin[]={0,1,2,3,4,5,6,7};
void setup() {
// put your setup code here, to run once:
for(int i=0;i<10;i++)
{
pinMode(pin[i],OUTPUT);
}
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(0,LOW);
digitalWrite(1,HIGH);
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
}
5. Video [kembali]
6. Link Download [kembali]
- HTML Link Download
- Simulasi Proteus Link Download
- Listing Program Link Download
- Video Link Download
Tidak ada komentar:
Posting Komentar