Commit 3b3a9d2f authored by 李鑫3's avatar 李鑫3

feat:GTX400检测台

parent ac97d7f2
......@@ -84,4 +84,6 @@ extern uint8_t HWout[8];
extern const uint32_t diagKeyP1;
extern const uint32_t diagKeyP2;
extern uint16_t Light_Sensing(uint8_t bytH, uint8_t bytL);
extern void PMPRead(void);
extern uint8_t zhenduanstep2;
#endif
......@@ -11,9 +11,9 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
{
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{
key_left =1;
Gen_TimeDelay ( 100 *1000,50U);
key_left =0;
// key_left =1;
// Gen_TimeDelay ( 100 *1000,50U);
// key_left =0;
}
......@@ -167,7 +167,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
if(MENU_CHECK_STEP==2)
{
LINE_RESET=1;
key_left=1;
shortflag=1;
}
......@@ -177,7 +177,7 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
if(MENU_CHECK_STEP==2)
{
LINE_RESET=1;
key_left=1;
longflag=1;
}
......
......@@ -287,20 +287,22 @@ else
if(longflag == 1)
{
// key_left=1;
queren_delay++;
if(queren_delay==25)
{
LINE_RESET=0;
// key_left=0;
queren_delay=0;
longflag=0;
}
}
else if(shortflag==1)
{
// key_left=1;
queren_delay2++;
if(queren_delay2==10)
{
LINE_RESET=0;
// key_left=0;
queren_delay2=0;
shortflag=0;
}
......@@ -363,7 +365,7 @@ else
if((MENU_CHECK_STEP==8) || (MENU_CHECK_STEP==0))
if(MENU_CHECK_STEP==6)
{
key_left=1;
leftad2++;
......@@ -377,7 +379,7 @@ else
}
if(MENU_CHECK_STEP==8)
if(MENU_CHECK_STEP==6)
{
key_right=1;
rightadd++;
......@@ -392,22 +394,22 @@ else
}
if((MENU_CHECK_STEP==6) || (MENU_CHECK_STEP==7))
{
if( shoubing == 1)
{
key_right=1;
delay_d++;
if(delay_d==30)
{
key_right=0;
delay_d=0;
shoubing=0;
}
}
// if((MENU_CHECK_STEP==6) || (MENU_CHECK_STEP==7))
// {
// if( shoubing == 1)
// {
// key_right=1;
// delay_d++;
// if(delay_d==30)
// {
// key_right=0;
// delay_d=0;
// shoubing=0;
// }
// }
}
// }
// if((rightflg==1) && (leftflg==1))
// {
......@@ -516,36 +518,6 @@ else
}
}
else if((MENU_CHECK_STEP==7) &&(igonoff ==6))
{
delay++;
// POWER_CTRL_KL30 = 0u; //B+
POWER_CTRL_KL15 = 0u; //KL15
LINE_OUT_cartoon=0;
if(delay==11)
{
// POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15 = 1u; //KL15
LINE_OUT_cartoon=1;
delay=0;
igonoff=7;
}
}
else if((MENU_CHECK_STEP==8) &&(igonoff ==7))
{
delay++;
// POWER_CTRL_KL30 = 0u; //B+
POWER_CTRL_KL15 = 0u; //KL15
LINE_OUT_cartoon=0;
if(delay==11)
{
// POWER_CTRL_KL30 = 1u; //B+
POWER_CTRL_KL15 = 1u; //KL15
LINE_OUT_cartoon=1;
delay=0;
igonoff=8;
}
}
else if((MENU_CHECK_STEP==9) &&(igonoff ==8))
{
delay++;
POWER_CTRL_KL30 = 0u; //B+
......@@ -561,6 +533,11 @@ else
}
}
if(MENU_CHECK_STEP==7)
{
PMPRead();
}
}
/*=================================================================*/
......
This diff is collapsed.
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