byte index=0;
const byte LEDs[10]={
B0000001,
B1001111,
B0010010,
B0000110,
B1001100,
B0100100,
B0100000,
B0001111,
B0000000,
B0000100
};
void setup() {
DDRD=B11111111;
}
void loop() {
PORTD=LEDs[index];
index++;
if(index==10)
{
index=0;
}
delay(1000);
}