void setup() {
// put your setup code here, to run once:
DDRF=0xFF;
DDRK=0xFF;
DDRA=0xFF;
DDRC=0xFF;
}
void outputa(char x) {
PORTA = x; // Write the value of x directly to PORTA
}
void outputf(char x) {
PORTF = x; // Write the value of x directly to PORTA
}
void outputk(char x) {
PORTK = x; // Write the value of x directly to PORTA
}
void outputc(char x) {
PORTC = x; // Write the value of x directly to PORTA
}
void loop() {
// put your main code here, to run repeatedly:
int digits[11]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};
// int n,b,d;
// n=b=d=0;
// outputc(digits[0]);
//for(volatile int i=0;i<100000;i++);
for(volatile int f=0;f<6;f++)
{
// if(f!=0)
//{
// n=1;
// }
for(volatile int k=0;k<=9;k++)
{
// if(k!=0)
// b=1;
for(volatile int a=0;a<6;a++)
{
// if(a!=0)
// d=1;
for(volatile int c=0;c<=9;c++)
{
// if(n==1)
outputf(digits[f]);
//if(b==1)
outputk(digits[k]);
// if(d==1)
outputa(digits[a]);
outputc(digits[c]);
for(volatile long i=0;i<100000;i++);
}
}
}
}
}