int seg[]= {0x5B, 0x06,0x06,0x06, 0x66, 0x06, 0x07, 0x3F };
void setup() {
// put your setup code here, to run once:
DDRA=0xFF;
}
void loop() {
// put your main code here, to run repeatedly:
for (int a=0; a<=8;a++){
PORTA=seg[a];
delay(1000);
PORTA=0x00;
delay(500);
if (a==1){
digitalWrite(29, HIGH);
delay(1000);
}
else if(a==3){
digitalWrite(29, HIGH);
delay(1000);
}
}
}