成功率最低的部分
case 3:disp_cn_1_16x16(piad[11],4,48); //
if(num==12) //確認鍵
{
if((shui_h!=shu)&&(shu!=0))
{
shui_h=shu;
delay_ms(2);
IapErase(0x0200); //扇區擦除
IapProgram(0x0200,shui_h>>8); //保存高水位數據高8位
IapProgram(0x0200+1,shui_h); //保存高水位數據低8位
}
flas++;
shu=0; //輸入板清0
}
if(shui_h>99)
{
disp_cn_2_8x16(pia1[h1],4,40); //h百位
}
else
{
disp_cn_2_8x16(pi0[0],4,40); //
}
if(shui_h>9)
{
disp_cn_2_8x16(pia1[h2],4,48); //h十位
}
else
{
disp_cn_2_8x16(pi0[0],4,48); //
}
disp_cn_2_8x16(pia1[h3],4,56);
if(num==15)flas--;
break; |