Commit 29f9d661 authored by hu's avatar hu

调整蓝色指示灯与绿色指示灯在有位置灯时亮度降低

parent 1bf2f517
......@@ -184,6 +184,9 @@ void Test_LED_AllLight(void)
#define LED_BRIGHTNESSG 0x3Fu
#define LED_BRIGHTNESSY 0x3Fu
#define LED_BRIGHTNESSB 0x3Fu
#define LED_BRIGHTNESSGBL 0x08u
#define LED_BRIGHTNESSBBL 0x08u
/******************************************************************************
T3 L16 U1 U4 U5无灯 左右转向单独 气压1 气压2 指示灯是背光
R L5 L6 L7 L8 R1 R3 R4 (R2 水温)
......@@ -356,7 +359,14 @@ void LED_FOUR_MUL_FOUR_T_Execution(uint8_t led_status)
{
if (led_status == 1)
{
IS31_CHIP0_CHANNEL35 = LED_BRIGHTNESSG;
if (Line_In_Get_Status(LINE_IN_ILLUMINATION))
{
IS31_CHIP0_CHANNEL35 = LED_BRIGHTNESSGBL;
}
else
{
IS31_CHIP0_CHANNEL35 = LED_BRIGHTNESSG;
}
SEG_LED_FOUR_MUL_FOUR_T(7);
}
else
......@@ -395,7 +405,14 @@ void LED_EXH_BRAKE_T_Execution(uint8_t led_status)
{
if (led_status == 1)
{
IS31_CHIP0_CHANNEL34 = LED_BRIGHTNESSG;
if (Line_In_Get_Status(LINE_IN_ILLUMINATION))
{
IS31_CHIP0_CHANNEL34 = LED_BRIGHTNESSGBL;
}
else
{
IS31_CHIP0_CHANNEL34 = LED_BRIGHTNESSG;
}
SEG_LED_EXH_BRAKE_T(7);
}
else
......@@ -470,7 +487,14 @@ void LED_HI_BEAM_T_Execution(uint8_t led_status)
{
if (led_status == 1)
{
IS31_CHIP0_CHANNEL32 = LED_BRIGHTNESSY;
if (Line_In_Get_Status(LINE_IN_ILLUMINATION))
{
IS31_CHIP0_CHANNEL32 = LED_BRIGHTNESSBBL;
}
else
{
IS31_CHIP0_CHANNEL32 = LED_BRIGHTNESSB;
}
SEG_LED_HI_BEAM_T(7);
}
else
......@@ -631,7 +655,14 @@ void LED_H_S_A_T_Execution(uint8_t led_status)
}
else if (led_status == 2u)
{
IS31_CHIP0_CHANNEL28 = LED_BRIGHTNESSG; /*绿灯 亮*/
if (Line_In_Get_Status(LINE_IN_ILLUMINATION))
{
IS31_CHIP0_CHANNEL28 = LED_BRIGHTNESSGBL; /*绿灯 亮*/
}
else
{
IS31_CHIP0_CHANNEL28 = LED_BRIGHTNESSG; /*绿灯 亮*/
}
IS31_CHIP0_CHANNEL29 = 0x00; /*黄灯 灭*/
}
else
......@@ -684,7 +715,14 @@ void LED_RETARDER_T_Execution(uint8_t led_status)
}
else if (led_status == 2u)
{
IS31_CHIP0_CHANNEL27 = LED_BRIGHTNESSG; /* 绿灯 亮 */
if (Line_In_Get_Status(LINE_IN_ILLUMINATION))
{
IS31_CHIP0_CHANNEL27 = LED_BRIGHTNESSGBL; /* 绿灯 亮 */
}
else
{
IS31_CHIP0_CHANNEL27 = LED_BRIGHTNESSG; /* 绿灯 亮 */
}
IS31_CHIP0_CHANNEL26 = 0x00u; /* 黄灯 灭 */
}
else
......@@ -1379,7 +1417,14 @@ void LED_eco_stop_OFF_L_Execution(uint8_t led_status)
{
if (led_status == 1)
{
IS31_CHIP0_CHANNEL12 = LED_BRIGHTNESSG; /* 绿灯 亮 */
if (Line_In_Get_Status(LINE_IN_ILLUMINATION))
{
IS31_CHIP0_CHANNEL12 = LED_BRIGHTNESSGBL; /* 绿灯 亮 */
}
else
{
IS31_CHIP0_CHANNEL12 = LED_BRIGHTNESSG; /* 绿灯 亮 */
}
IS31_CHIP0_CHANNEL13 = 0x00u; /* 黄灯 灭 */
}
else if (led_status == 2)
......
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