const int seg[]={4,5,10,11,12,3,2};
const String num[]={"0000001","1001111",
"0010010","0000110",
"1001100","0100100",
"0100000","0001111",
"0000000","0000100"};
char seq[8];
int i,j;
void setup() {
for(i=0;i<7;i++){
pinMode(seg[i], OUTPUT);
}
}
void loop() {
for(j=0;j<10;j++){
num[j].toCharArray(seq,8);
for(i=0;i<7;i++){
digitalWrite(seg[i],seq[i]-'0');
}
delay(1000);
}
}