#include #define uchar unsigned char
#define uint unsigned int
uchar dis_buf; //显示缓存
uchar temp;
uchar key; //键顺序吗
void delay0(uchar x); //x*0.14MS
#define delayNOP(); {_nop_();_nop_();_nop_();_nop_();};
// 此表为 LED 的字模 0 12 3 4 56 78 9 a b cd e f
unsigned char code LED7Code[] = {~0x3F,~0x06,~0x5B,~0x4F,~0x66,~0x6D,~0x7D,~0x07,~0x7F,~0x6F,~0x77,~0x7C,~0x39,~0x5E,~0x79,~0x71};
/*************************************************************/
/* */
/* 延时子程序 */
/* */
/*************************************************************/
void delay(uchar x)
{ uchar j;
while((x--)!=0)
{ for(j=0;j<125;j++)
{;}
}
}
/*************************************************************/
/* */
/* 键扫描子程序 (4*3 的矩阵) P1.4 P1.5 P1.6 P1.7为行 */
/* P1