void setup() {
// put your setup code here, to run once:
volatile char *dirf=0x30;
*dirf=0xff;
}
void loop() {
// put your main code here, to run repeatedly:
volatile char num[10]={0x3f,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0X6F};
volatile char i;
volatile long j;
volatile char *outf=0x31;
for(i=0;i<=9;i++)
{
if(i%2==0)
{
for(j=0;j<=600000;j++);
*outf=num[i];
}
}
}