if(Tset 《 2)
{
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
}
if(Tset》2)
{
number_disp (0x95,1,0x20,TAB[SZL2]); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 7://第7位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZL3++;
if(SZL3》9) //設置,不超過9
{
SZL3 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
}
if(Tset》2)
{
number_disp (0x8f,1,TAB[SZH3],0x20); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 8://第8位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZH3++;
if(SZH3》9) //設置,不超過9
{
SZH3 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
}
if(Tset》2)
{
number_disp (0x8f,1,0x20,TAB[SZL3]); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 9://第9位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZL4++;
if(SZL4》9) //設置,不超過9
{
SZL4 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x8e,1,TAB[SZH4],TAB[SZL4]);
}
if(Tset》2)
{
number_disp (0x8e,1,TAB[SZH4],0x20); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 10://第10位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZH4++;
if(SZH4》9) //設置,不超過9
{
SZH4 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x8e,1,TAB[SZH4],TAB[SZL4]);
}
if(Tset》2)
{
number_disp (0x8e,1,0x20,TAB[SZL4]); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 11://第11位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
number_disp (0x8e,1,TAB[SZH4],TAB[SZL4]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZL5++;
if(SZL5》9) //設置,不超過9
{
SZL5 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x9f,1,TAB[SZH5],TAB[SZL5]);
}
if(Tset》2)
{
number_disp (0x9f,1,TAB[SZH5],0x20); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 12://第12位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
number_disp (0x8e,1,TAB[SZH4],TAB[SZL4]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZH5++;
if(SZH5》9) //設置,不超過9
{
SZH5 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x9f,1,TAB[SZH5],TAB[SZL5]);
}
if(Tset》2)
{
number_disp (0x9f,1,0x20,TAB[SZL5]); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 13://第11位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
number_disp (0x8e,1,TAB[SZH4],TAB[SZL4]);
number_disp (0x9f,1,TAB[SZH5],TAB[SZL5]);
if(!(Mkey&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZL6++;
if(SZL6》9) //設置,不超過9
{
SZL6 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x9e,1,TAB[SZH6],TAB[SZL6]);
}
if(Tset》2)
{
number_disp (0x9e,1,TAB[SZH6],0x20); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
case 14://第12位修改
{
number_disp (0x97,1,TAB[SZH0],TAB[SZL0]); //把前面的顯示了
number_disp (0x96,1,TAB[SZH1],TAB[SZL1]);
number_disp (0x95,1,TAB[SZH2],TAB[SZL2]);
number_disp (0x8f,1,TAB[SZH3],TAB[SZL3]);
number_disp (0x8e,1,TAB[SZH4],TAB[SZL4]);
number_disp (0x9f,1,TAB[SZH5],TAB[SZL5]);
if(?。∕key&0x01)) //+按下嗎?
{
delayms(200);
if(?。∕key&0x01))
{
BGset =2;
SZH6++;
if(SZH6》9) //設置,不超過9
{
SZH6 = 0;
}
}
}
if(Tset 《 2)
{
number_disp (0x9e,1,TAB[SZH6],TAB[SZL6]);
}
if(Tset》2)
{
number_disp (0x9e,1,0x20,TAB[SZL6]); //定時送滅狀態(tài),實現(xiàn)閃爍
}
}break;
default:break;
}
if(?。∕key&0x04)) //ENT按下嗎?確認ENT 在0畫面設定參數(shù)
{
delayms(200);
if(?。∕key&0x04))
{
BGset =2;
Between[0] = SZH0*10 + SZL0;
Between[1] = SZH1*10 + SZL1;
Between[2] = SZH2*10 + SZL2;
Between[3] = SZH3*10 + SZL3;
Between[4] = SZH4*10 + SZL4;
Between[5] = SZH5*10 + SZL5;
Between[6] = SZH6*10 + SZL6;
Flash_Erase_CSSZ();
Flash_Program_CSSZ(); //寫入FLASH
set = 0;
Page = 1; //退出到1畫面
}
}
}
}
評論