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
3c618e79
Commit
3c618e79
authored
8 months ago
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:大计需要显示六位补齐
parent
0b629104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
58 deletions
+22
-58
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+22
-58
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
3c618e79
...
...
@@ -2424,80 +2424,44 @@ static void AMT630H_GUI_Voltage(uint16_t Voltage)
/*大计里程显示函数*/
static
void
AMT630H_GUI_ODO
(
uint32_t
ODO
,
uint8_t
mode
)
{
uint8_t
ODO_bit
=
0U
;
uint32_t
ODO_temp
=
ODO
;
uint16_t
ODO_index
=
0U
;
if
(
ODO_temp
==
0
)
if
((
PIC_DAYTIME_Main_CH
)
&&
(
PIC_DAYTIME_Main_EN
))
{
ODO_bit
=
1
;
}
else
{
while
(
ODO_temp
!=
0U
)
{
ODO_bit
++
;
ODO_temp
/=
10U
;
}
}
ODO_index
=
53U
+
(
ODO_bit
*
24U
);
if
((
Pic_mode
==
PIC_DAYTIME_Main_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_Main_EN
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0577_48_272
);
if
(
mode
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0578_55_296
);
}
else
{
}
/*ODO位数不同 KM位置不同*/
SetPagePicFree
(
GRAPHICS_PAGE_0
,
Pic_0580_91_324
,
(
ODO_index
+
10U
),
324U
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0577_48_272
)
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0578_55_296
)
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_211_324
)
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint
32
_t
ODONumber
;
ODONumber
=
ODO
;
uint
16
_t
ODONumber
;
ODONumber
=
ODO
;
DisplayNumPara
.
NumList
=
NumbeList_ODO_DAY
;
DisplayNumPara
.
x
=
(
ODO_index
-
24U
)
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
x
=
173
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
ODO_bit
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
DisplayNumPara
.
MinDigits
=
6
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
}
else
if
((
Pic_mode
==
PIC_NIGHTTIME_Main_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_Main_EN
))
else
if
((
PIC_NIGHTTIME_Main_CH
)
&&
(
PIC_NIGHTTIME_Main_EN
))
{
/*ODO位数不同 KM位置不同*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0685_48_272
);
if
(
mode
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0686_55_296
);
}
else
{
}
/*ODO位数不同 KM位置不同*/
SetPagePicFree
(
GRAPHICS_PAGE_0
,
Pic_0688_211_324
,
(
ODO_index
+
10U
),
324U
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0685_48_272
)
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0686_55_296
)
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_211_324
)
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint
32
_t
ODONumber
;
ODONumber
=
ODO
;
uint
16
_t
ODONumber
;
ODONumber
=
ODO
;
DisplayNumPara
.
NumList
=
NumbeList_ODO_NIGHT
;
DisplayNumPara
.
x
=
(
ODO_index
-
24U
)
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
x
=
173
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
ODO_bit
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
DisplayNumPara
.
MinDigits
=
6
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
}
else
...
...
This diff is collapsed.
Click to expand it.
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