#include "4digits.h"
void setup() {
// put your setup code here, to run once:
volatile char *portf;
portf=0x30;
*portf=0xFF;
volatile char *portk;
portk=0x107;
*portk=0xFF;
volatile char *porta;
portf=0x27;
*portf=0xFF;
volatile char *portc;
portk=0x24;
*portk=0xFF;
}
void loop() {
// put your main code here, to run repeatedly:
volatile char *out;
volatile long i,j,k,l;
for(i=0;i<=9;i++)
{
screen1(i);
for(j=0;j<=9;j++)
{
screen2(j);
delay(5);
for(k=0;k<=9;k++)
{
screen3(k);
delay(5);
for(l=0;l<=9;l++)
{
screen4(l);
delay(100);
}
}
}
}
}