Commit e8e5f0fd authored by 陈家乐's avatar 陈家乐

feat:间隔3S

parent a0f41dff
......@@ -10,7 +10,7 @@ Target=USBDM
Layout=C_layout.hwl
LoadDialogOptions=AUTOERASEANDFLASH RUNANDSTOPAFTERLOAD="main"
CPU=HC12
MainFrame=0,1,-1,-1,-1,-1,156,156,1308,821
MainFrame=0,1,-1,-1,-1,-1,197,163,1349,828
TOOLBAR=57600 57601 32795 0 57635 57634 57637 0 57671 57669 0 32777 32776 32782 32780 32781 32778 0 32806
AEFWarningDialog=FALSE
......
......@@ -15,4 +15,3 @@ Data:1 < ADDXPR ONLY_ADD_IF_NEW "G_Button.LED_STEP"
Data:1 < ADDXPR ONLY_ADD_IF_NEW "g_Msg250"
Data:1 < ADDXPR ONLY_ADD_IF_NEW "CS_OUT_CC"
Data:1 < ADDXPR ONLY_ADD_IF_NEW "CPMUAPICTL_APIF"
Data:1 < ADDXPR ONLY_ADD_IF_NEW "XUN_HUAN"
......@@ -44,17 +44,26 @@ interrupt void bsp_RTC_isr(void)
if(XUN_HUAN == 1)
{
AutoTime++;
if(AutoTime > T_3s)
if(AutoTime > T_1s)
{
AutoTime = 0;
if((G_Button.LED_STEP >= 0)&&(G_Button.LED_STEP < MenuCn))
if((G_Button.LED_STEP > 0)&&(G_Button.LED_STEP < MenuCn))
{
G_Button.LED_STEP ++;
AutoTime = 0;
}
else if(G_Button.LED_STEP == 0)
{
if(AutoTime > T_3s)
{
G_Button.LED_STEP ++;
AutoTime = 0;
}
}
else
{
G_Button.LED_STEP = 0;
AutoTime = 0;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment