Commit 6539478d authored by 王雅楠's avatar 王雅楠

feat:燃油走格显示修改规范,燃油为1格时第1格显示红区,非1格时第1格显示灰色。

parent 5a99750b
...@@ -2857,7 +2857,7 @@ static const uint16_t NumbeList_PhoneConnect_ESpeed[] ={ ...@@ -2857,7 +2857,7 @@ static const uint16_t NumbeList_PhoneConnect_ESpeed[] ={
Pic_0394_64_554, Pic_0394_64_554,
}; };
static const uint16_t PICList_Fuel[] = { static const uint16_t PICList_Fuel[] = {
Pic_0562_315_473, Pic_0554_315_473,
Pic_0555_366_473, Pic_0555_366_473,
Pic_0556_426_473, Pic_0556_426_473,
Pic_0557_469_473, Pic_0557_469_473,
...@@ -2867,7 +2867,7 @@ static const uint16_t PICList_Fuel[] = { ...@@ -2867,7 +2867,7 @@ static const uint16_t PICList_Fuel[] = {
Pic_0561_623_473, Pic_0561_623_473,
}; };
static const uint16_t PICList_PhoneConnect_Fuel[] = { static const uint16_t PICList_PhoneConnect_Fuel[] = {
Pic_0414_76_536, Pic_0415_76_536,
Pic_0416_105_536, Pic_0416_105_536,
Pic_0417_134_536, Pic_0417_134_536,
Pic_0418_163_536, Pic_0418_163_536,
...@@ -3301,7 +3301,7 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel) ...@@ -3301,7 +3301,7 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
FuelLevel = Fuel; FuelLevel = Fuel;
if(Fuel == 0) if(Fuel == 0)
{ {
FuelLevel = 1; FuelLevel = 1; /*格数统一*/
} }
else else
{ {
...@@ -3371,6 +3371,11 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel) ...@@ -3371,6 +3371,11 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
} }
} }
else
{
;
}
/*燃油格数走格*/ /*燃油格数走格*/
if (FuelLevel > 0) if (FuelLevel > 0)
{ {
...@@ -3407,6 +3412,14 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel) ...@@ -3407,6 +3412,14 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
{ {
; ;
} }
if (g_u16_GUI_PerFuelLevel == 1)
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0562_315_473);
}
else
{
;
}
} }
uint16_t g_u16PerFuel_SelfCheck = 1; uint16_t g_u16PerFuel_SelfCheck = 1;
...@@ -3513,7 +3526,7 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel) ...@@ -3513,7 +3526,7 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel)
s_FuelLowTime++; s_FuelLowTime++;
if (s_FuelLowTime <= 15) if (s_FuelLowTime <= 15)
{ {
SetPagePic(GRAPHICS_PAGE_0, Pic_0552_503_529); /*黄色燃油灯*/ SetPagePic(GRAPHICS_PAGE_0, Pic_0423_26_529); /*黄色燃油灯*/
} }
if (s_FuelLowTime > 20) if (s_FuelLowTime > 20)
{ {
...@@ -3522,10 +3535,11 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel) ...@@ -3522,10 +3535,11 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel)
} }
else else
{ {
SetPagePic(GRAPHICS_PAGE_0, Pic_0551_503_529); /*黑色燃油灯*/ SetPagePic(GRAPHICS_PAGE_0, Pic_0424_26_529); /*黑色燃油灯*/
s_FuelLowTime = 0; s_FuelLowTime = 0;
} }
/*燃油格数走格*/ /*燃油格数走格*/
if (FuelLevel > 0) if (FuelLevel > 0)
{ {
...@@ -3560,7 +3574,15 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel) ...@@ -3560,7 +3574,15 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel)
} }
else else
{ {
//SetPagePic(GRAPHICS_PAGE_0, Pic_0414_76_536); /*燃油红区*/ ;
}
if(g_u16_GUI_PerFuelLevel == 1) /*当变化到1格时 显示为红区*/
{
SetPagePic(GRAPHICS_PAGE_0, Pic_0414_76_536);
}
else
{
;
} }
} }
......
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