uint i=0;
uchar flag=0;
uint count=0;
uint xianshi=0;
uchar bai,shi,ge;
void lcdshowbai(uchar data)
{
switch(data)
{
case 0:
{A1=B1=C1=D1=E1=F1=1;break;}
case 1:
{C1=B1=1;break;}
case 2:
{A1=B1=G1=D1=E1=1;break;}
case 3:
{A1=B1=C1=D1=G1=1;break;}
case 4:
{ F1=B1=C1=G1=1;break;}
case 5:
{ A1=F1=C1=D1=G1=1;break;}
case 6:
{ A1=F1=C1=D1=G1=E1=1;break;}
case 7:
{ A1=B1=C1=1; break;}
case 8:
{ A1=B1=C1=D1=G1=E1=F1=1;break;}
case 9:
{ A1=B1=C1=D1=G1=F1=1;break;}
}
}
void lcdshowshi(uchar data)
{
switch(data)
{
case 0:
{A2=B2=C2=D2=E2=F2=1;break;}
case 1:
{ B2=C2=1;break;}
case 2:
{ A2=B2=G2=D2=E2=1;break;}
case 3:
{ A2=B2=C2=D2=G2=1;break;}
case 4:
{F2=B2=C2=G2=1;break;}
case 5:
{A2=F2=C2=D2=G2=1;break;}
case 6:
{A2=F2=C2=D2=G2=E2=1;break;}
case 7:
{A2=B2=C2=1;break;}
case 8:
{A2=B2=C2=D2=G2=E2=F2=1;break;}
case 9:
{A2=B2=C2=D2=G2=F2=1;break;}
}
}
void lcdshowge(uchar data)
{
switch(data)
{
case 0:
{A3=B3=C3=D3=E3=F3=1;break;}
case 1:
{C3=B3=1;break;}
case 2:
{A3=B3=G3=D3=E3=1;break;}
case 3:
{A3=B3=C3=D3=G3=1;break;}
case 4:
{F3=B3=C3=G3=1;break;}
case 5:
{A3=F3=C3=D3=G3=1;break;}
case 6:
{A3=F3=C3=D3=G3=E3=1;break;}
case 7:
{A3=B3=C3=1;break;}
case 8:
{A3=B3=C3=D3=G3=E3=F3=1;break;}
case 9:
{A3=B3=C3=D3=G3=F3=1;break;}
}
}