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 alph[26]={0x77,0x7c,0x39,0x5e,0x79,0x71,0x7d,0x76,0x06,0x1e,0x38,0x54,0x5c,0x73,0x67,0x50,0x6d,0x78,0x3e,0x6e,0x5b};
volatile char i;
volatile long j;
volatile char *outf=0x31;
// K,M,N,V,W,X is not display at 7 segments//
for(i=0;i<=21;i++)
{
for(j=0;j<=600000;j++);
*outf=alph[i];
}
}