int SEGMENT_DIGITS[]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10,
0x48,0x03,0x46,0x21,0x06,0x0E};
void setup()
{
DDRD=0XFF; //pins 7 to 0, set port D as output i.e. pin-0 to A-led
}
void loop()
{
for(int j=0;j<10;j++)
{
PORTD= SEGMENT_DIGITS[j];
delay(1000);
}
}