Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
haoJin750TFT
Commits
6539478d
Commit
6539478d
authored
Sep 18, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:燃油走格显示修改规范,燃油为1格时第1格显示红区,非1格时第1格显示灰色。
parent
5a99750b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
6 deletions
+28
-6
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+28
-6
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
6539478d
...
...
@@ -2857,7 +2857,7 @@ static const uint16_t NumbeList_PhoneConnect_ESpeed[] ={
Pic_0394_64_554
,
};
static
const
uint16_t
PICList_Fuel
[]
=
{
Pic_05
62
_315_473
,
Pic_05
54
_315_473
,
Pic_0555_366_473
,
Pic_0556_426_473
,
Pic_0557_469_473
,
...
...
@@ -2867,7 +2867,7 @@ static const uint16_t PICList_Fuel[] = {
Pic_0561_623_473
,
};
static
const
uint16_t
PICList_PhoneConnect_Fuel
[]
=
{
Pic_041
4
_76_536
,
Pic_041
5
_76_536
,
Pic_0416_105_536
,
Pic_0417_134_536
,
Pic_0418_163_536
,
...
...
@@ -3301,7 +3301,7 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
FuelLevel
=
Fuel
;
if
(
Fuel
==
0
)
{
FuelLevel
=
1
;
FuelLevel
=
1
;
/*格数统一*/
}
else
{
...
...
@@ -3371,6 +3371,11 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
}
}
else
{
;
}
/*燃油格数走格*/
if
(
FuelLevel
>
0
)
{
...
...
@@ -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
;
...
...
@@ -3513,7 +3526,7 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel)
s_FuelLowTime
++
;
if
(
s_FuelLowTime
<=
15
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
552_503
_529
);
/*黄色燃油灯*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
423_26
_529
);
/*黄色燃油灯*/
}
if
(
s_FuelLowTime
>
20
)
{
...
...
@@ -3522,10 +3535,11 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel)
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
551_503
_529
);
/*黑色燃油灯*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
424_26
_529
);
/*黑色燃油灯*/
s_FuelLowTime
=
0
;
}
/*燃油格数走格*/
if
(
FuelLevel
>
0
)
{
...
...
@@ -3560,7 +3574,15 @@ static void AMT630H_GUI_PhoneConnect_Fuel(uint8_t Fuel)
}
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
{
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment