10
for (j=0;j<i;j++){} }
//***********显示函数*********** void display(void) {
//定义显示函数
uchar codevalue[17]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71,0x00}; //0~F的字段码表
uchar chocode[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; //位选码表 uchar i,p,temp; for (i=0;i<8;i++) {
temp=chocode[i]; //XBYTE[0x7f01]=temp; //p=disbuffer[i]; //temp=codevalue[p]; //XBYTE[0x7f00]=temp; //delay(20); //} }
取当前的位选码 送出位选码 取当前显示的字符 查得显示字符的字段码 送出字段码 延时1ms