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
f06293bb
Commit
f06293bb
authored
Oct 10, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:优化贴图部分OTA和手机互联界面的代码
parent
e6f569ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
84 deletions
+101
-84
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+101
-84
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
f06293bb
...
...
@@ -48,6 +48,8 @@ void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select);
void
AMT630H_GUI_Phone_Connect_Win
(
void
);
/*手机互联*/
void
AMT630H_GUI_ReadPosittion_Display
(
void
);
/*投屏界面*/
void
AMT630H_GUI_Display_Navigation_Area
(
void
);
void
AMT630H_GUI_PhoneConnect_Second_LowHalf
(
void
);
static
void
AMT630H_GUI_PhoneConnect_Light
();
static
void
AMT630H_GUI_PhoneConnect_TIME
(
uint16_t
Hour
,
uint16_t
Minute
);
static
void
AMT630H_GUI_PhoneConnect_VSpeed
(
uint16_t
VechileSpeed
);
...
...
@@ -55,7 +57,8 @@ static void AMT630H_GUI_PhoneConnect_ESpeed(uint16_t ESpeed);
static
void
AMT630H_GUI_PhoneConnect_Fuel
(
uint8_t
Fuel
);
static
void
AMT630H_GUI_PhoneConnect_Telephone
();
static
void
AMT630H_GUI_PhoneConnect_Voltage
(
uint16_t
Voltage
);
/*OTA界面*/
void
AMT630H_GUI_Display_OTA_Page_Information
(
void
);
void
AMT630H_GUI_Background
()
{
...
...
@@ -4707,6 +4710,100 @@ void AMT630H_GUI_SETTING()
}
}
}
/*进入OTA界面执行刷图和发送图片id*/
void
AMT630H_GUI_Display_OTA_Page_Information
(
void
)
{
PicObj
.
qr_logo_id
=
0
;
PicObj
.
main_pic_id
=
Pic_0382
;
PicObj
.
qr_pic_id
=
Pic_0316
;
PicObj
.
update_pic_id
=
Pic_0233
;
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
0
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
/*图层*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0932_124_85
);
/*\豪进750TFT(371000 - 7500 - 02TY0000)OTA升级*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0933_101_210
);
/*\SSID: TYW_DASHBOARD*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0934_102_260
);
/*\PASS: 88888888*/
//SetPagePic(GRAPHICS_PAGE_0, Pic_0935_36_367);/*\热点已连接到TYW_DASHBOARD*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0936_92_367
);
/*\请根据提示设置手机热点*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0937_564_521
);
/*\*请保持移动设备与仪表距离在半米内*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
}
/*投屏区域*/
void
AMT630H_GUI_Display_Navigation_Area
(
void
)
{
PicObj
.
qr_logo_id
=
0
;
//Pic_0234 小数字9 EA
PicObj
.
main_pic_id
=
Pic_0382
;
//大白背景图 17E
PicObj
.
qr_pic_id
=
Pic_0479
;
//小数字0 1DF
PicObj
.
update_pic_id
=
Pic_0233
;
//小数字8 E9
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
Pic_0411
;
//红色小e 19B
if
(
GetPhoneMirrorst
()
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0476_0_0
);
/*上半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0478_188_310
);
/*版本*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0491_188_343
);
/*状态*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0494_410_144
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0495_655_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0496_410_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0498_411_252
);
/*UUID*/
// /*是否激活接口待补充*/
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
// if(/*已激活*/)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0492_243_344);
// }
// else
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0493_242_344);
// }
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
1
,
PicObj
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
AMT630H_GUI_PhoneConnect_UPtele
();
}
}
void
AMT630H_GUI_PhoneConnect_Second_LowHalf
(
void
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0479_242_313
);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);/*背景图*/
AMT630H_GUI_PhoneConnect_Light
();
AMT630H_GUI_PhoneConnect_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
if
(
VechileSpeed_time
<
4
)
{
// VechileSpeed_time++;
}
else
{
VechileSpeed_time
=
0
;
VechileSpeed
=
Get_DispVechileSpeed
()
/
10
;
}
AMT630H_GUI_PhoneConnect_VSpeed
(
VechileSpeed
);
AMT630H_GUI_PhoneConnect_ESpeed
(
Get_DispEngineSpeed
());
AMT630H_GUI_PhoneConnect_Fuel
(
Get_CurFuelSetp
());
AMT630H_GUI_PhoneConnect_Telephone
();
if
(
KL30_VOLTAGE_time
<
10
)
{
KL30_VOLTAGE_time
++
;
}
else
{
KL30_VOLTAGE_time
=
0
;
KL30_VOLTAGE_Value
=
(
ADC_Read_Signal
(
ADC_CH_KL30_VOLTAGE
))
/
10
;
}
AMT630H_GUI_PhoneConnect_Voltage
(
KL30_VOLTAGE_Value
);
}
void
AMT630H_GUI_DisplayProc
(
void
)
{
...
...
@@ -4857,20 +4954,7 @@ void AMT630H_GUI_ReadPosittion_Display(void)
}
else
{
PicObj
.
qr_logo_id
=
0
;
PicObj
.
main_pic_id
=
Pic_0382
;
PicObj
.
qr_pic_id
=
Pic_0316
;
PicObj
.
update_pic_id
=
Pic_0233
;
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
0
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
/*图层*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0932_124_85
);
/*\豪进750TFT(371000 - 7500 - 02TY0000)OTA升级*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0933_101_210
);
/*\SSID: TYW_DASHBOARD*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0934_102_260
);
/*\PASS: 88888888*/
//SetPagePic(GRAPHICS_PAGE_0, Pic_0935_36_367);/*\热点已连接到TYW_DASHBOARD*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0936_92_367
);
/*\请根据提示设置手机热点*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0937_564_521
);
/*\*请保持移动设备与仪表距离在半米内*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
AMT630H_GUI_Display_OTA_Page_Information
();
}
break
;
case
MENU_ITEM_PHONE_CONNECT
:
/*28 手机互联*/
...
...
@@ -4886,75 +4970,8 @@ void AMT630H_GUI_ReadPosittion_Display(void)
AMT630H_GUI_Phone_Connect_Win
();
break
;
case
MENU_ITEM_PHONE_CONNECT_APP
:
PicObj
.
qr_logo_id
=
0
;
//Pic_0234 小数字9 EA
PicObj
.
main_pic_id
=
Pic_0382
;
//大白背景图 17E
PicObj
.
qr_pic_id
=
Pic_0479
;
//小数字0 1DF
PicObj
.
update_pic_id
=
Pic_0233
;
//小数字8 E9
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
Pic_0411
;
//红色小e 19B
if
(
GetPhoneMirrorst
()
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0476_0_0
);
/*上半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0478_188_310
);
/*版本*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0491_188_343
);
/*状态*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0494_410_144
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0495_655_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0496_410_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0498_411_252
);
/*UUID*/
// /*是否激活接口待补充*/
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
// if(/*已激活*/)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0492_243_344);
// }
// else
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0493_242_344);
// }
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
1
,
PicObj
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
AMT630H_GUI_PhoneConnect_UPtele
();
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0479_242_313
);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);/*背景图*/
AMT630H_GUI_PhoneConnect_Light
();
AMT630H_GUI_PhoneConnect_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
if
(
VechileSpeed_time
<
4
)
{
// VechileSpeed_time++;
}
else
{
VechileSpeed_time
=
0
;
VechileSpeed
=
Get_DispVechileSpeed
()
/
10
;
}
AMT630H_GUI_PhoneConnect_VSpeed
(
VechileSpeed
);
AMT630H_GUI_PhoneConnect_ESpeed
(
Get_DispEngineSpeed
());
AMT630H_GUI_PhoneConnect_Fuel
(
Get_CurFuelSetp
());
AMT630H_GUI_PhoneConnect_Telephone
();
if
(
KL30_VOLTAGE_time
<
10
)
{
KL30_VOLTAGE_time
++
;
}
else
{
KL30_VOLTAGE_time
=
0
;
KL30_VOLTAGE_Value
=
(
ADC_Read_Signal
(
ADC_CH_KL30_VOLTAGE
))
/
10
;
}
AMT630H_GUI_PhoneConnect_Voltage
(
KL30_VOLTAGE_Value
);
AMT630H_GUI_Display_Navigation_Area
();
AMT630H_GUI_PhoneConnect_Second_LowHalf
();
break
;
default:
break
;
...
...
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