int digit[10][7]= {
{0,0,0,0,0,0,1}, //0
{1,0,0,1,1,1,1}, //1
{0,0,1,0,0,1,0}, //2
{0,0,0,0,1,1,0}, //3
{1,0,0,1,1,0,0}, //4
{0,1,0,0,1,0,0}, //5
{0,1,0,0,0,0,0}, //6
{0,0,0,1,1,1,1}, //7
{0,0,0,0,0,0,0}, //8
{0,0,0,0,1,0,0}, //9
};
int x,y,i;
void setup() {
for (x=0, x<=6, x++)
pinMode(x, OUTPUT);
}
void loop() {
for (i=0, i<=9, i++)
{
for (y=0, y<=6, y++)
digitalWrite(y+1, digit[i],[y]);
}
delay(300);
}