Commit c903ee28 authored by 何锐's avatar 何锐

feat:增加边撑上下电

parent 8888a6dc
......@@ -4668,3 +4668,28 @@ void RotationAlarm(void)
}
}
}
uint8_t BCDD_MCU_Flag;
uint8_t BCDD_MCU_Time;
void BCDD_MCU_Service(void)
{
if(BCDD_MCU_Flag)
{
BCDD_MCU_Time++;
if(BCDD_MCU_Time <= 50)
{
BCDD_MCU = 1;
}
else
{
BCDD_MCU = 0;
BCDD_MCU_Time = 0;
BCDD_MCU_Flag = 0;
}
}
else
{
BCDD_MCU_Time = 0;
BCDD_MCU = 0;
}
}
\ No newline at end of file
......@@ -83,6 +83,7 @@ extern void Buzzer_Init(void);
extern void Buzzer_Warning(void);
extern void ONE_KEY_Display(void);
extern void RotationAlarm(void);
extern void BCDD_MCU_Service(void);
void GUI_General_Digit_Display(uint32_t Digit, const uint8_t *Font[], uint8_t Len, uint8_t Blank, const uint16_t *px, uint16_t y);
void GUI_Display_Version_Code_Service(uint8_t StarX, uint16_t PosY, uint8_t * Str, const uint8_t * Version[] , uint8_t SpaceKeySize);
......@@ -103,4 +104,5 @@ extern const uint8_t *Num_15[];
#define PCodeText_Space_size 2//故障文字 英文空格的像素数
extern uint8_t CHECK_Value;
extern uint8_t BCDD_MCU_Flag;
#endif
......@@ -25,13 +25,12 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
}
}
//边撑
void Key_Operation_SW4(Key_Event_en_t enKeyEvent)
{
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{
MENU_CHECK_STEP_SUB();
CHECK_Ctrl_delay = 0;
CHECK_Value = 0;
BCDD_MCU_Flag = 1;
}
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{
......@@ -138,9 +137,24 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
}
}
//下一步
void Key_Operation_SW1(Key_Event_en_t enKeyEvent)
{
{
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{
MENU_CHECK_STEP_SUB();
}
else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
{
}
else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
{
}
else
{
}
}
......
......@@ -338,6 +338,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
Display_PageNum();
ONE_KEY_Display();
RotationAlarm();
BCDD_MCU_Service();
if(CHECK_Ctrl_delay < 200)
{
......
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