case 2:
{
unsigned char *s1=" ";
DispStr(5,0,s1);
Disp1Char(11,0,2+48);
da=da-8;// 电压减小0.0049v
if(da<=40)
{
da=3960;
}
a=da*250/4095;
d[1]=(unsigned int)(a/100)%10;
d[3]=(unsigned int)(a/10)%10;
d[4]=(unsigned int)(a)%10;
for(int i=1;i<=5;i++)
{
Disp1Char(i,0,d
+48);//第一行第几位
}
此帖出自小平头技术问答
一周热门 更多>