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
8a8bfc0b
Commit
8a8bfc0b
authored
8 months ago
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:主界面时钟显示配置完成
parent
2edf5c34
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+5
-2
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+9
-0
Key_user.h
Firmware/Source/Component/Key/Key_user.h
+1
-1
Sys_Task_List.c
Firmware/Source/System/Sys_Task_List.c
+1
-0
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
8a8bfc0b
...
...
@@ -2150,7 +2150,10 @@ static void AMT630H_GUI_TIME(uint16_t Hour, uint16_t Minute)
if
((
Pic_mode
==
PIC_DAYTIME_Main_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_Main_EN
))
{
/*外部接收小时和分钟*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0522_916_503
);
if
(
FLASH_SYNC_1Hz
)
{
SetPagePicFree
(
GRAPHICS_PAGE_0
,
Pic_0522_916_503
,
918
,
501
);
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
HourNumber
;
uint16_t
MinuteNumber
;
...
...
@@ -2685,7 +2688,7 @@ void AMT630H_GUI_BACKGRAND()
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0754_109_347
);
}
AMT630H_GUI_TIME
(
12
,
13
);
AMT630H_GUI_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
()
);
/* AMT630H_GUI_Telephone(Telephone); */
AMT630H_GUI_Fuel
(
2
);
AMT630H_GUI_Voltage
(
123
);
...
...
This diff is collapsed.
Click to expand it.
Firmware/Source/Component/Key/Key_user.c
View file @
8a8bfc0b
...
...
@@ -323,6 +323,15 @@ void TYW_RESET_ODO(void)
}
}
void
Get_DisTime_Service
(
void
)
{
if
(
1
)
{
RTE_RTC_Get_CounterValue
(
&
counter_val
);
counter_val
.
time
.
RTC_Hours
=
RTC_Bcd2ToByte
(
counter_val
.
time
.
RTC_Hours
);
counter_val
.
time
.
RTC_Minutes
=
RTC_Bcd2ToByte
(
counter_val
.
time
.
RTC_Minutes
);
}
}
uint8_t
Get_Dis_Hour_Time
(
void
)
...
...
This diff is collapsed.
Click to expand it.
Firmware/Source/Component/Key/Key_user.h
View file @
8a8bfc0b
...
...
@@ -71,7 +71,7 @@ void Key_Clear_Time(void);
uint8_t
Get_Dis_OdoAndTrip
(
void
);
uint8_t
Get_Dis_Bluetooth_Open_Close
(
void
);
uint8_t
Get_Dis_Language
(
void
);
void
Get_DisTime_Service
(
void
);
...
...
This diff is collapsed.
Click to expand it.
Firmware/Source/System/Sys_Task_List.c
View file @
8a8bfc0b
...
...
@@ -47,6 +47,7 @@ void Sys_50ms_Tasks(void)
void
Sys_100ms_Tasks
(
void
)
{
Get_DisTime_Service
();
Fuel_Cal_Sevice
(
100u
);
RTE_GPIO_Set_Level
(
Blacklight_PWM
,
1
);
}
...
...
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