Page 6 - ciencia y tecnologia
P. 6
}
if(a%4==2||a%4==3){
digitalWrite(A1,HIGH);
}else{
digitalWrite(A1,LOW);
}
if(a%8>3 && a%8<8){
digitalWrite(A2,HIGH);
}else{
digitalWrite(A2,LOW);
}
if(a%16>7 && a%16<16){
digitalWrite(A3,HIGH);
}else{
digitalWrite(A3,LOW);
}
if(a%32>15 && a%32<32){
digitalWrite(A4,HIGH);
}else{
digitalWrite(A4,LOW);
}
if(a%64>31 && a%64<64){
digitalWrite(A5,HIGH);
}else{
digitalWrite(A5,LOW);
}
delay(1000);
a=a+1;
if(a==60){
b=b+1;
a=0;
}