文档介绍:#include <>
#define uint unsigned int
#define uchar unsigned char
uchar code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0xff}; //0-9
uchar code wx[]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};
uchar code buf[15][8]={ {10,10,10,10,10,10,10,0}, //10
{10,10,10,10,10,10,0, 1},
{10,10,10,10,10,0, 1, 2},
{10,10,10,10,0, 1, 2, 3},
{10,10,10,0, 1, 2, 3, 4},
{10,10,0, 1, 2, 3, 4, 5},
{10,0, 1, 2, 3, 4, 5, 6},
{0, 1, 2, 3, 4, 5, 6, 7},
{1, 2, 3, 4, 5, 6, 7, 10},
{2, 3, 4, 5, 6, 7, 10,10},
{3, 4, 5, 6, 7, 10,10,10},
{4, 5, 6, 7, 10,10,10,10},
{5, 6, 7, 10,10,10,10,10},
{6, 7, 10,10,10,10,10,10},
{7, 10,10,10,10,10,10,10},
};
/*************************延时程序************************************/
void delay(uchar k)
{
uchar a,b;
for(a=k;a!=0;a--)
for(b=248;b!=0;b--)
;
}
/**********************************************************************/
void