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
d0183b03
Commit
d0183b03
authored
Aug 20, 2024
by
王雅楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更改trip对齐坐标
parent
a4105297
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
24 deletions
+30
-24
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+30
-24
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
d0183b03
...
...
@@ -3498,54 +3498,54 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara
.
DecimalNum
=
1
;
/*小数点后一位*/
if
((
Tripnumber
<
10000
)
&&
(
Tripnumber
>=
1000
))
{
DisplayNumPara
.
x
=
1
25
;
DisplayNumPara
.
x
=
1
40
;
DisplayNumPara
.
MinDigits
=
4
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_1
63_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_1
87_324
);
//KM
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_1
63_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_1
87_324
);
/*单位mile*/
}
}
else
if
((
Tripnumber
<
1000
)
&&
(
Tripnumber
>=
100
))
{
DisplayNumPara
.
x
=
1
01
;
DisplayNumPara
.
x
=
1
16
;
DisplayNumPara
.
MinDigits
=
3
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_1
39_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_1
63_324
);
/*KM*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_1
39_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_1
63_324
);
/*单位mile*/
}
}
else
if
((
Tripnumber
<
100
)
&&
(
Tripnumber
>=
10
))
{
DisplayNumPara
.
x
=
77
;
DisplayNumPara
.
x
=
93
;
DisplayNumPara
.
MinDigits
=
2
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_1
15_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_1
39_324
);
/*KM*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_1
15_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_1
39_324
);
/*单位mile*/
}
}
else
if
((
Tripnumber
<
10
)
&&
(
Tripnumber
>=
0
))
{
DisplayNumPara
.
x
=
5
3
;
DisplayNumPara
.
x
=
9
3
;
DisplayNumPara
.
MinDigits
=
2
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_91_324
);
/*单位
KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_139_324
);
/*
KM*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_
91
_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0861_
139
_324
);
/*单位mile*/
}
}
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Tripnumber
);
...
...
@@ -3560,48 +3560,54 @@ static void AMT630H_GUI_Trip(uint32_t Trip, uint8_t Uint)
DisplayNumPara
.
DecimalNum
=
1
;
/*小数点后一位*/
if
((
Tripnumber
<
10000
)
&&
(
Tripnumber
>=
1000
))
{
DisplayNumPara
.
x
=
1
25
;
DisplayNumPara
.
x
=
1
40
;
DisplayNumPara
.
MinDigits
=
4
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688_163_324
);
/*KM
*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580_187_324
);
/*单位km
*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_1
63
_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_1
87
_324
);
/*单位mile*/
}
}
else
if
((
Tripnumber
<
1000
)
&&
(
Tripnumber
>=
100
))
{
DisplayNumPara
.
x
=
1
01
;
DisplayNumPara
.
x
=
1
16
;
DisplayNumPara
.
MinDigits
=
3
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_139_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_139_324
);
/*单位mile*/
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_163_324
);
/*KM*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_163_324
);
/*单位mile*/
}
}
else
if
((
Tripnumber
<
100
)
&&
(
Tripnumber
>=
10
))
{
DisplayNumPara
.
x
=
77
;
DisplayNumPara
.
x
=
93
;
DisplayNumPara
.
MinDigits
=
2
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688_115
_324
);
/*KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580_139
_324
);
/*KM*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_1
15
_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_1
39
_324
);
/*单位mile*/
}
}
else
if
((
Tripnumber
<
10
)
&&
(
Tripnumber
>=
0
))
{
DisplayNumPara
.
x
=
5
3
;
DisplayNumPara
.
x
=
9
3
;
DisplayNumPara
.
MinDigits
=
2
;
if
(
Uint
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
688_91
_324
);
/*单位KM*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
580_139
_324
);
/*单位KM*/
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_
91
_324
);
/*单位mile*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0863_
139
_324
);
/*单位mile*/
}
}
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Tripnumber
);
...
...
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