int leds[]={4,23,5,17,3,16,19};//g,f,e,d,c,b,a
int nove []={0,0,1,0,0,0,0};
int oito[]={0,0,0,0,0,0,0};
int sete[]={1,1,1,1,0,0,0};
int seis[]={0,0,0,0,0,1,0};
int cinco []={0,0,1,0,0,1,0};
int quatro[]={0,0,1,1,0,0,1};
int tres[]={0,1,1,0,0,0,0};
int dois[]={0,1,0,0,1,0,0};
int um []={1,1,1,1,0,0,1};
int zero []={1,0,0,0,0,0,0};

void setup() {
for ( int i = 0; i<7;i++) pinMode(leds[i], OUTPUT);
}

void loop() {
for ( int i = 0; i<7;i++) digitalWrite(leds[i],nove[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],oito[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],sete[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],seis[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],cinco[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],quatro[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],tres[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],dois[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],um[i]);
delay(1000);
for ( int i = 0; i<7;i++) digitalWrite(leds[i],zero[i]);
delay(1000);
}