void setup() {
// put your setup code here, to run once:
volatile char *dirf,*dirk;
volatile char *outf,*outk;
volatile long a[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x67};
volatile long i,j,k,x=1;
dirf = 0x30; outf = 0x31;
dirk= 0x107; outk = 0x108;
for(i=0;i<10;i++)
{
*outf=a[i];
for(j=0;j<300000;j++);
}
while(x<10)
{
for(k=0;k<10;k++)
{
*outf=a[x];
*outk=a[k];
for(j=0;j<300000;j++);
}
x++;
}
}
void loop() {
// put your main code here, to run repeatedly:
}