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
cc61289f
Commit
cc61289f
authored
Aug 03, 2024
by
王雅楠
🍎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改背光设置、单位设置、语言设置的一级菜单和二级菜单显示函数+修改灯和硬线触发条件
parent
2ec140ad
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1309 additions
and
1040 deletions
+1309
-1040
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+1247
-992
AMT630H_Datas.h
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
+16
-8
Components.h
Firmware/Source/Component/Components.h
+3
-0
Line_In_user.c
Firmware/Source/Component/Line_In/Line_In_user.c
+15
-15
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+27
-25
Telltales_user.h
Firmware/Source/Component/Telltales/Telltales_user.h
+1
-0
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
cc61289f
...
...
@@ -4,8 +4,8 @@
uint8_t
Pic_mode
=
PIC_DAYTIME_CH
;
uint8_t
g_u8Display_Mode
=
ModeDAY
;
uint8_t
g_u8Language
=
CH
;
uint8_t
g_u8Backlight
=
Backlight_
1
;
uint8_t
g_u8Backlight
=
Backlight_
5
;
uint8_t
g_u8UnitSetting
=
Metric
;
// 菜单背景,菜单前必带
void
AMT630H_GUI_BACKGRAND
(
void
);
// 菜单调用函数
...
...
@@ -22,11 +22,11 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
void
AMT630H_GUI_Clock_Information
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
);
// 二级菜单
static
void
AMT630H_GUI_Clock_Setting
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
,
uint8_t
Clock_BIT
);
/*时钟设置*/
void
AMT630H_GUI_Backlight_Setting
(
uint8
_t
back_mode
);
/*背光设置*/
void
AMT630H_GUI_Backlight_Setting
(
Menu_Item_en
_t
back_mode
);
/*背光设置*/
void
AMT630H_GUI_Display_Mode_Setting
(
Menu_Item_en_t
display_mode
);
/*显示模式*/
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
uint8_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
);
/*蓝牙连接*/
void
AMT630H_GUI_Unit_Setting
(
uint8
_t
select
);
/*单位设置*/
void
AMT630H_GUI_Language_Setting
(
uint8
_t
select
);
/*语言设置*/
void
AMT630H_GUI_Unit_Setting
(
Menu_Interface_en
_t
select
);
/*单位设置*/
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_Background
()
...
...
@@ -99,19 +99,10 @@ void AMT630H_GUI_Display_Mode_Information()
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0161_207_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0185_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0192_445_517
);
// if(Menu_Item_Select_Get(MENU_ITEM_SELECT_DAYTIME) == 1)
// {
/*日间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0149_448_101
);
// g_u8Display_Mode = ModeDAY;
// }
// else
// {
// ;
// }
}
else
if
(
g_u8Language
==
EN
)
/*日间英文*/
{
...
...
@@ -120,19 +111,10 @@ void AMT630H_GUI_Display_Mode_Information()
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_222_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0125_729_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0126_415_519
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
)
==
1
)
{
/*日间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0074_422_103
);
}
else
{
;
}
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
...
...
@@ -144,19 +126,10 @@ void AMT630H_GUI_Display_Mode_Information()
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0348_207_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0372_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0379_445_517
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
)
==
1
)
{
/*夜间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0339_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
}
else
{
;
}
}
else
if
(
g_u8Language
==
EN
)
/*夜间英文*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0311_18_397
);
...
...
@@ -164,31 +137,26 @@ void AMT630H_GUI_Display_Mode_Information()
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0272_222_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0313_729_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0314_415_519
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
)
==
1
)
{
/*夜间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0258_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0263_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
}
else
{
;
}
}
}
/*else if自动模式没写*/
}
/*背光设置*/
/**
* @brief 背光设置 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Backlight_Information
(
void
)
{
/*日间中文*/
if
(
g_u8Display_Mode
=
ModeDAY
)
if
(
g_u8Display_Mode
=
ModeDAY
)
/*日间模式下*/
{
/*语言*/
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0187_37_396
);
...
...
@@ -204,19 +172,73 @@ void AMT630H_GUI_Backlight_Information(void)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0120_174_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0121_732_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0122_436_519
);
}
/*背光等级选择*/
if
(
g_u8Backlight
==
Backlight_5
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0063_495_145
);
}
else
if
(
g_u8Display_Mode
=
ModeNIGHT
)
else
if
(
g_u8Backlight
==
Backlight_4
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0064_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_3
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0066_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_2
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0067_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_1
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_ATUO
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_136
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0118_52_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0119_891_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0120_174_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0121_732_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0122_436_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0145_477_340
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0070_466_342
);
}
}
}
else
if
(
g_u8Display_Mode
=
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0374_37_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0375_904_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0343_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0368_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0376_446_517
);
}
else
if
(
g_u8Language
==
EN
)
{
...
...
@@ -226,8 +248,65 @@ void AMT630H_GUI_Backlight_Information(void)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0309_732_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0310_436_519
);
}
/*背光等级选择*/
if
(
g_u8Backlight
==
Backlight_5
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0249_495_145
);
}
else
if
(
g_u8Backlight
==
Backlight_4
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0250_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_3
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0252_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_2
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0253_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_1
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
}
else
if
(
g_u8Backlight
==
Backlight_ATUO
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_136
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0332_477_340
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0256_466_342
);
}
}
}
}
static
uint16_t
Bluetooth_num_day
[]
=
{
Pic_0040_605_289
,
Pic_0041_606_290
,
...
...
@@ -258,14 +337,12 @@ static uint16_t Bluetooth_num_night[] = {
*/
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0183_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0184_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0185_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0177_738_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0186_445_517
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0137_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
...
...
@@ -280,7 +357,6 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140_584_226
);
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
...
...
@@ -307,37 +383,30 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0370_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0371_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0372_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0364_738_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0373_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0034_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0037_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0054_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0056_377_166
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_58
4_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0052_57
4_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0327_584
_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0053_573
_226
);
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DisplayNumPara
.
NumList
=
Bluetooth_num_night
;
DisplayNumPara
.
NumList
=
Bluetooth_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -348,7 +417,7 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_num_night
;
DisplayNumPara
.
NumList
=
Bluetooth_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -357,37 +426,33 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0113_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0114_924_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0115_189_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0116_724_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0117_440_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0037_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0054_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0056_377_166
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0325_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0052_57
4_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_58
4_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0053_573
_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0327_584
_226
);
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DisplayNumPara
.
NumList
=
Bluetooth_num_day
;
DisplayNumPara
.
NumList
=
Bluetooth_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -398,7 +463,7 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_num_day
;
DisplayNumPara
.
NumList
=
Bluetooth_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -407,15 +472,10 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0301_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0302_924_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0303_189_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0304_724_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0305_440_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0222_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0237_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0240_377_227
);
...
...
@@ -430,7 +490,6 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0239_573_226
);
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
...
...
@@ -457,6 +516,7 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
}
}
static
uint16_t
Time_num_day
[]
=
{
...
...
@@ -633,110 +693,109 @@ void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min)
*/
void
AMT630H_GUI_Unit_Information
(
void
)
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
/*组*/
if
(
g_u8UnitSetting
==
Metric
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0175_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0176_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0177_198_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0165_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0178_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8UnitSetting
==
Imperial
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0362_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0363_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0364_198_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0352_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0365_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0131_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0132_474_168
);
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0012_22_397
);
/*组*/
if
(
g_u8UnitSetting
==
Metric
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0103_22_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0104_895_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0105_184_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0106_733_488
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0107_476_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0015_469_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0016_457_155
);
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8UnitSetting
==
Imperial
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0291_22_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0292_895_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0293_184_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0294_733_488
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0295_476_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0204_469_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0205_457_155
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0013_437_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0014_481_170
);
}
}
/**
* @brief 语言设置 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Language_Information
(
void
)
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0171_28_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0172_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0173_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0160_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0174_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0358_28_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0359_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0360_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0347_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0361_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0098_14_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0099_895_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0100_218_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0101_728_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0102_441_521
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0318_27_396
);
if
(
g_u8UnitSetting
==
Metric
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
}
else
if
(
g_u8UnitSetting
==
Imperial
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0319_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0320_474_168
);
}
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0201_22_397
);
if
(
g_u8UnitSetting
==
Metric
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0204_469_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0205_457_155
);
}
else
if
(
g_u8UnitSetting
==
Imperial
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0202_437_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0203_481_170
);
}
}
}
}
/**
* @brief 语言设置 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Language_Information
(
void
)
{
if
(
g_u8Display_Mode
==
ModeDAY
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_28_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0006_14_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0286_14_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0287_895_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0288_218_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0289_728_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0290_441_521
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0196_14_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0197_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0198_490_168
);
}
}
}
/**
* @brief 手机互联 一级菜单
*
...
...
@@ -1285,7 +1344,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
* @brief 背光设置 二级菜单
* @param[in] back_mode 背光模式 0为自动
*/
void
AMT630H_GUI_Backlight_Setting
(
uint8
_t
back_mode
)
/*图 背光*/
void
AMT630H_GUI_Backlight_Setting
(
Menu_Item_en
_t
back_mode
)
/*图 背光*/
{
/*case 0 自动*/
/*case 1 选中1*/
...
...
@@ -1294,241 +1353,265 @@ void AMT630H_GUI_Backlight_Setting(uint8_t back_mode) /*图 背光*/
/*case 4 选中4*/
/*case 5 选中5*/
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
/*日间模式*/
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0144_37_396
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0057_52_398
);
}
switch
(
back_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0145_477_340
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_136
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0067_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_229
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0066_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_183
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0064_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
5
:
case
MENU_ITEM_BACKLIGHT_5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_138
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0063_495_145
);
break
;
default:
break
;
}
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_5
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0331_37_396
);
switch
(
back_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_297
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0332_477_340
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_136
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_239
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0253_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_194
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0252_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_148
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0250_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_103
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0249_495_145
);
break
;
default:
break
;
g_u8Backlight
=
Backlight_5
;
}
else
{
;
}
break
;
case
MENU_ITEM_BACKLIGHT_4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_183
);
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0064_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_4
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0057_52_398
);
/*下方菜单*/
switch
(
back_mode
)
g_u8Backlight
=
Backlight_4
;
}
else
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0070_466_342
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_136
);
;
}
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
case
MENU_ITEM_BACKLIGHT_3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_229
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0066_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_3
))
{
g_u8Backlight
=
Backlight_3
;
}
else
{
;
}
break
;
case
2
:
case
MENU_ITEM_BACKLIGHT_
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0067_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_2
))
{
g_u8Backlight
=
Backlight_2
;
}
else
{
;
}
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_229
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0066_496_236
);
case
MENU_ITEM_BACKLIGHT_1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_1
))
{
g_u8Backlight
=
Backlight_1
;
}
else
{
;
}
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_183
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0064_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_138
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0061_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0063_495_145
);
break
;
case
MENU_ITEM_BACKLIGHT_AUTO
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0059_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_136
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0145_477_340
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0070_466_342
);
}
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_AUTO
))
{
g_u8Backlight
=
Backlight_ATUO
;
}
else
{
;
}
break
;
default:
break
;
}
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0331_37_396
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0243_52_398
);
}
switch
(
back_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_297
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0256_466_342
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_136
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
case
MENU_ITEM_BACKLIGHT_5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_138
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0249_495_145
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_5
))
{
g_u8Backlight
=
Backlight_5
;
}
else
{
;
}
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_239
);
case
MENU_ITEM_BACKLIGHT_4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_183
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0253_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0250_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_4
))
{
g_u8Backlight
=
Backlight_4
;
}
else
{
;
}
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_194
);
case
MENU_ITEM_BACKLIGHT_3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_229
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0252_496_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_3
))
{
g_u8Backlight
=
Backlight_3
;
}
else
{
;
}
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_148
);
case
MENU_ITEM_BACKLIGHT_2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0250_493_190
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0253_495_281
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_2
))
{
g_u8Backlight
=
Backlight_2
;
}
else
{
;
}
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_103
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_353
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_307
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0247_505_264
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_219
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0249_495_145
);
case
MENU_ITEM_BACKLIGHT_1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_1
))
{
g_u8Backlight
=
Backlight_1
;
}
else
{
;
}
break
;
case
MENU_ITEM_BACKLIGHT_AUTO
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_332
);
default:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0245_509_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_136
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0332_477_340
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0256_466_342
);
}
/*记忆选择*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_BACKLIGHT_AUTO
))
{
g_u8Backlight
=
Backlight_ATUO
;
}
else
{
;
}
break
;
}
}
...
...
@@ -1563,47 +1646,44 @@ static uint16_t Bluetooth_Connect_num_night[] = {
* @param[in] sync_contacts 同步联系人
* @param[in] Connect_ON 0 关 1 开
*/
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
uint8
_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
Menu_Item_en
_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
/*光标位置*/
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0137_26_396
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
/*返回*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
/*同步联系人*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
/*蓝牙连接*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
/*HI3EA0*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
/*蓝牙名称*/
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
/*蓝牙连接 光标*/
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
/*同步联系人 光标*/
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
/*返回 光标*/
break
;
default:
break
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0137_26_396
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
/*返回*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
/*同步联系人*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
/*蓝牙连接*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
/*HI3EA0*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
/*蓝牙名称*/
/*蓝牙开或关选择*/
/*蓝牙开关*/
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140
_584_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141
_584_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141
_584_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140
_584_226
);
}
/*同步联系人*/
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
...
...
@@ -1630,47 +1710,48 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0034_14_397
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0037_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0054_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0056_377_166
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
/*蓝牙连接 光标*/
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
/*同步联系人 光标*/
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
/*返回 光标*/
break
;
default:
break
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0325_26_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
/*蓝牙连接*/
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_58
4_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0052_57
4_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0327_584
_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0053_573
_226
);
}
/*蓝牙联系人选择
*/
/*蓝牙联系人
*/
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -1681,7 +1762,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -1690,46 +1771,50 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0325_26_396
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
/*蓝牙连接 光标*/
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
/*同步联系人 光标*/
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
/*返回 光标*/
break
;
default:
break
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0034_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0037_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0054_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0056_377_166
);
}
/*蓝牙连接*/
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0052_57
4_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_58
4_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0053_573
_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0327_584
_226
);
}
/*蓝牙联系人选择*/
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -1740,7 +1825,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
...
...
@@ -1749,30 +1834,31 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0222_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0237_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0240_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0242_377_166
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
/*蓝牙连接 光标*/
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
/*同步联系人 光标*/
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
/*返回 光标*/
break
;
default:
break
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0222_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0237_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0240_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0242_377_166
);
/*蓝牙连接*/
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0238_574_226
);
...
...
@@ -1786,7 +1872,6 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0223_590_287
);
...
...
@@ -1813,120 +1898,148 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(uint8_t select, uint8_t sync_contacts
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
}
}
/**
* @brief 单位设置 二级菜单
* @param[in] select 0为公制 1为英制
*/
void
AMT630H_GUI_Unit_Setting
(
uint8
_t
select
)
/*图 单位设置*/
void
AMT630H_GUI_Unit_Setting
(
Menu_Interface_en
_t
select
)
/*图 单位设置*/
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
/*组*/
switch
(
select
)
{
case
0
:
case
MENU_ITEM_UNIT_KM
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_KM
)
==
1
)
{
g_u8UnitSetting
=
Metric
;
}
break
;
case
1
:
case
MENU_ITEM_UNIT_MILE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0131_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0132_474_168
);
break
;
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_MILE
)
==
1
)
{
g_u8UnitSetting
=
Imperial
;
}
default:
break
;
}
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0318_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0012_22_397
);
/*组*/
switch
(
select
)
{
case
0
:
case
MENU_ITEM_UNIT_KM
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0015_469_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0016_457_155
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_KM
)
==
1
)
{
g_u8UnitSetting
=
Metric
;
}
break
;
case
1
:
case
MENU_ITEM_UNIT_MILE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0319_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0320_474_168
);
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0013_437_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0014_481_170
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_MILE
)
==
1
)
{
g_u8UnitSetting
=
Imperial
;
}
default:
break
;
}
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0318_27_396
);
/*组*/
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0012_22_397
);
switch
(
select
)
{
case
0
:
case
MENU_ITEM_UNIT_KM
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0015_469_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0016_457_155
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_KM
)
==
1
)
{
g_u8UnitSetting
=
Metric
;
}
break
;
case
1
:
case
MENU_ITEM_UNIT_MILE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0013_437_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0014_481_170
);
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0319_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0320_474_168
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_MILE
)
==
1
)
{
g_u8UnitSetting
=
Imperial
;
}
default:
break
;
}
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0201_22_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0201_22_397
);
/*组*/
switch
(
select
)
{
case
0
:
case
MENU_ITEM_UNIT_KM
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0204_469_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0205_457_155
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_KM
)
==
1
)
{
g_u8UnitSetting
=
Metric
;
}
break
;
case
1
:
case
MENU_ITEM_UNIT_MILE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0202_437_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0203_481_170
);
break
;
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_MILE
)
==
1
)
{
g_u8UnitSetting
=
Imperial
;
}
default:
break
;
}
}
}
}
/**
* @brief 语言设置 二级菜单
* @param[in] select 0为中文 1为英文
*/
void
AMT630H_GUI_Language_Setting
(
uint8
_t
select
)
/*图 语言设置*/
void
AMT630H_GUI_Language_Setting
(
Menu_Interface_en
_t
select
)
/*图 语言设置*/
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_28_396
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_28_396
);
/*下方菜单*/
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在日间模式中文下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在日间模式中文下 选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
break
;
...
...
@@ -1934,64 +2047,127 @@ void AMT630H_GUI_Language_Setting(uint8_t select) /*图 语言设置*/
break
;
}
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Language
==
EN
)
/*在日间英文模式下*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0006_14_397
);
/*下方菜单*/
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199
_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200
_474_152
);
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在日间英文模式下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007
_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008
_474_152
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0197
_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0198
_490_168
);
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在日间英文模式下 选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010
_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011
_490_168
);
break
;
default:
break
;
}
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0006_14_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
/*下方菜单*/
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在夜间中文模式下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在夜间英文模式下 选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
break
;
default:
break
;
}
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0196_14_397
);
/*下方菜单*/
switch
(
select
)
{
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在夜间中文模式下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
break
;
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在夜间英文模式下 选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
break
;
default:
break
;
}
}
}
// switch (select)
// {
// case MENU_ITEM_LANGUAGE_CHINESE:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0129_28_396);/*组*/
// SetPagePic(GRAPHICS_PAGE_0, Pic_0004_336_140);/*光标*/
// SetPagePic(GRAPHICS_PAGE_0, Pic_0007_475_289);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0008_474_152);
// if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_CHINESE))
// {
// g_u8Language = CH;
// }
// else
// {
// ;
// }
// break;
// case MENU_ITEM_LANGUAGE_ENGLISH:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0006_14_397);/*组*/
// SetPagePic(GRAPHICS_PAGE_0, Pic_0009_321_261);/*光标*/
// SetPagePic(GRAPHICS_PAGE_0, Pic_0010_448_274);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0011_490_168);
// if(Menu_Item_Select_Get(MENU_ITEM_LANGUAGE_ENGLISH))
// {
// g_u8Language = EN;
// }
// else
// {
// ;
// }
// break;
// default:
// break;
// }
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0196_14_397
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
case
MENU_ITEM_LANGUAGE_CHINESE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_CHINESE
))
{
g_u8Language
=
CH
;
}
else
{
;
}
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
case
MENU_ITEM_LANGUAGE_ENGLISH
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0196_14_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0197_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0198_490_168
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_ENGLISH
))
{
g_u8Language
=
EN
;
}
else
{
;
}
break
;
default:
break
;
...
...
@@ -2031,7 +2207,7 @@ void AMT630H_GUI_Phone_Connect_Win(void)
}
}
/**************************************
日间模式的
主界面************************************/
/**************************************主界面************************************/
static
const
uint16_t
NumbeList_TIME_DAY
[]
=
{
Pic_0523_950_491
,
Pic_0524_957_491
,
...
...
@@ -2197,10 +2373,77 @@ static const uint16_t PICList_Fuel[] = {
Pic_0561_623_473
,
};
/*指示灯*/
static
void
AMT630H_GUI_Light
()
{
if
(
Get_TelltalesLedSts
(
em_LED_Turn_Left
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0752_28_13
);
}
if
(
Get_TelltalesLedSts
(
em_LED_Turn_Right
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0736_941_13
);
}
if
(
Get_TelltalesLedSts
(
em_LED_High_Beam
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0744_402_21
);
}
if
(
Get_TelltalesLedSts
(
em_LED_Efi_Fault
))
{
;
}
if
(
Get_TelltalesLedSts
(
em_LED_ABS
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0743_476_20
);
}
if
(
Get_TelltalesLedSts
(
em_LED_Auto_Start_Stop
))
{
}
if
(
Get_TelltalesLedSts
(
em_LED_Oil_Pressure_Alert
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0738_792_25
);
}
if
(
Get_TelltalesLedSts
(
em_LED_TCS
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0750_106_26
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0750_106_26
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0751_111_30
);
}
if
(
Get_TelltalesLedSts
(
em_LED_HEV
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0747_244_26
);
}
if
(
Get_TelltalesLedSts
(
em_LED_Coolant_Temperature
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0741_616_20
);
}
if
(
Get_TelltalesLedSts
(
em_LED_WIFI
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0737_875_23
);
}
if
(
Get_TelltalesLedSts
(
em_LED_Bluetooth
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0740_682_21
);
}
if
(
Get_TelltalesLedSts
(
em_LED_E
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0748_194_26
);
}
if
(
Get_TelltalesLedSts
(
em_LED_S
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0749_192_26
);
}
}
/*时间显示函数*/
static
void
AMT630H_GUI_TIME
(
uint16_t
Hour
,
uint16_t
Minute
)
{
if
(
(
Pic_mode
==
PIC_DAYTIME_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_EN
)
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
/*外部接收小时和分钟*/
if
(
FLASH_SYNC_1Hz
)
...
...
@@ -2229,7 +2472,7 @@ static void AMT630H_GUI_TIME(uint16_t Hour, uint16_t Minute)
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
MinuteNumber
);
}
else
if
(
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
/*外部接收小时和分钟*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0634_916_503
);
...
...
@@ -2287,7 +2530,7 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
uint8_t
FuelLevel
;
FuelLevel
=
Fuel
;
static
uint8_t
s_FuelLowTime
=
0U
;
if
(
(
Pic_mode
==
PIC_DAYTIME_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_EN
)
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0553_315_473
);
/*燃油格*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0549_299_533
);
/*E*/
...
...
@@ -2318,7 +2561,7 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
s_FuelLowTime
=
0
;
}
}
else
if
(
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0662_315_473
);
/*燃油格*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0549_299_533
);
/*E*/
...
...
@@ -2371,9 +2614,8 @@ static void AMT630H_GUI_Fuel(uint8_t Fuel)
/*电压显示函数*/
static
void
AMT630H_GUI_Voltage
(
uint16_t
Voltage
)
{
if
(
(
Pic_mode
==
PIC_DAYTIME_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_EN
)
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
VoltageNumber
;
VoltageNumber
=
Voltage
/
10
;
...
...
@@ -2389,6 +2631,10 @@ static void AMT630H_GUI_Voltage(uint16_t Voltage)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0563_923_407
);
/*电压图标*/
}
else
{
;
}
/*数据处理*/
Voltage_Hundred
=
VoltageNumber
/
100
;
Voltage_Ten
=
(
VoltageNumber
%
100
)
/
10
;
...
...
@@ -2432,10 +2678,8 @@ static void AMT630H_GUI_Voltage(uint16_t Voltage)
;
}
}
else
if
(
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0563_923_407
);
/*电压图标*/
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
VoltageNumber
;
VoltageNumber
=
Voltage
/
10
;
...
...
@@ -2496,7 +2740,7 @@ static void AMT630H_GUI_Voltage(uint16_t Voltage)
/*大计里程显示函数*/
static
void
AMT630H_GUI_ODO
(
uint32_t
ODO
,
uint8_t
mode
)
{
if
(
(
Pic_mode
==
PIC_DAYTIME_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_EN
)
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
/*ODO位数不同 KM位置不同*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0577_48_272
);
...
...
@@ -2516,7 +2760,7 @@ static void AMT630H_GUI_ODO(uint32_t ODO, uint8_t mode)
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
}
else
if
(
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
/*ODO位数不同 KM位置不同*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0685_48_272
);
...
...
@@ -2545,7 +2789,7 @@ static void AMT630H_GUI_ODO(uint32_t ODO, uint8_t mode)
/*车速显示函数*/
static
void
AMT630H_GUI_VSpeed
(
uint16_t
VSpeed
)
{
if
(
(
Pic_mode
==
PIC_DAYTIME_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_EN
)
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0592_617_271
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0593_889_310
);
...
...
@@ -2597,7 +2841,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
;
}
}
else
if
(
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0700_617_271
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0701_889_310
);
...
...
@@ -2660,7 +2904,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
static
void
AMT630H_GUI_ESpeed
(
uint16_t
ESpeed
)
{
uint8_t
PIC
=
0
;
if
(
(
Pic_mode
==
PIC_DAYTIME_CH
)
||
(
Pic_mode
==
PIC_DAYTIME_EN
)
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0606_834_199
);
/* 1000r/min */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0607_94_110
);
/* 底 */
...
...
@@ -2697,7 +2941,7 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
}
}
else
if
(
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
||
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0714_834_199
);
/* 1000r/min */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0715_94_110
);
/* 底 */
...
...
@@ -2746,26 +2990,35 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
*/
void
AMT630H_GUI_BACKGRAND
()
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
/*背景图*/
if
(
g_u8Display_Mode
==
ModeDAY
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0753_109_331
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0754_109_347
);
}
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0753_109_331
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
}
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0754_109_347
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0754_109_347
);
}
}
/*主界面函数*/
AMT630H_GUI_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
/* AMT630H_GUI_Telephone(Telephone); */
...
...
@@ -2796,6 +3049,7 @@ void AMT630H_GUI_BACKGRAND()
AMT630H_GUI_ESpeed
(
0
);
}
}
void
AMT630H_GUI_SETTING
()
{
...
...
@@ -2846,68 +3100,69 @@ void AMT630H_GUI_ReadPosittion_Display(void)
switch
(
g_u8Cursor_Posittion
)
{
case
MENU_ITEM_MAIN_ITEM
:
/*主界面*/
AMT630H_GUI_BACKGRAND
();
/*主界面*/
AMT630H_GUI_BACKGRAND
();
AMT630H_GUI_Light
();
/*主界面*/
break
;
case
MENU_ITEM_DISPLAY_MODE
:
/*01 显示模式*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Information
();
break
;
case
MENU_ITEM_SELECT_DAYTIME
:
/*日间模式*/
case
MENU_ITEM_SELECT_DAYTIME
:
/*
10
日间模式*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Setting
(
MENU_ITEM_SELECT_DAYTIME
);
break
;
case
MENU_ITEM_SELECT_NIGHTTIME
:
/*夜间模式*/
case
MENU_ITEM_SELECT_NIGHTTIME
:
/*
11
夜间模式*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Setting
(
MENU_ITEM_SELECT_NIGHTTIME
);
break
;
case
MENU_ITEM_SELECT_AUTO
:
/*自动模式*/
case
MENU_ITEM_SELECT_AUTO
:
/*
12
自动模式*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Setting
(
MENU_ITEM_SELECT_AUTO
);
break
;
case
MENU_ITEM_BACKLIGHT_SETTING
:
/*0
4
背光设置*/
case
MENU_ITEM_BACKLIGHT_SETTING
:
/*0
2
背光设置*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Information
();
break
;
case
MENU_ITEM_BACKLIGHT_5
:
/*1
0
背光_5*/
case
MENU_ITEM_BACKLIGHT_5
:
/*1
3
背光_5*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Setting
(
5
);
AMT630H_GUI_Backlight_Setting
(
MENU_ITEM_BACKLIGHT_
5
);
break
;
case
MENU_ITEM_BACKLIGHT_4
:
/*
09
背光_4*/
case
MENU_ITEM_BACKLIGHT_4
:
/*
14
背光_4*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Setting
(
4
);
AMT630H_GUI_Backlight_Setting
(
MENU_ITEM_BACKLIGHT_
4
);
break
;
case
MENU_ITEM_BACKLIGHT_3
:
/*
08
背光_3*/
case
MENU_ITEM_BACKLIGHT_3
:
/*
15
背光_3*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Setting
(
3
);
AMT630H_GUI_Backlight_Setting
(
MENU_ITEM_BACKLIGHT_
3
);
break
;
case
MENU_ITEM_BACKLIGHT_2
:
/*
07
背光_2*/
case
MENU_ITEM_BACKLIGHT_2
:
/*
16
背光_2*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Setting
(
2
);
AMT630H_GUI_Backlight_Setting
(
MENU_ITEM_BACKLIGHT_
2
);
break
;
case
MENU_ITEM_BACKLIGHT_1
:
/*
06
背光_1*/
case
MENU_ITEM_BACKLIGHT_1
:
/*
17
背光_1*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Setting
(
1
);
AMT630H_GUI_Backlight_Setting
(
MENU_ITEM_BACKLIGHT_
1
);
break
;
case
MENU_ITEM_BACKLIGHT_AUTO
:
/*
05
背光自动*/
case
MENU_ITEM_BACKLIGHT_AUTO
:
/*
18
背光自动*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Backlight_Setting
(
0
);
AMT630H_GUI_Backlight_Setting
(
MENU_ITEM_BACKLIGHT_AUTO
);
break
;
case
MENU_ITEM_BLUETOOTH_CONNECT
:
/*
11
蓝牙连接*/
case
MENU_ITEM_BLUETOOTH_CONNECT
:
/*
03
蓝牙连接*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Information
(
8
,
1
);
AMT630H_GUI_Bluetooth_Information
(
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
break
;
case
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
:
/*12 蓝牙_开*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Connect_Setting
(
0
,
8
,
1
);
AMT630H_GUI_Bluetooth_Connect_Setting
(
0
,
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
break
;
case
MENU_ITEM_BLUETOOTH_SYNC
:
/*13 蓝牙同步联系人*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Connect_Setting
(
1
,
8
,
1
);
AMT630H_GUI_Bluetooth_Connect_Setting
(
1
,
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
break
;
case
MENU_ITEM_BLUETOOTH_BACK
:
/*14 蓝牙返回*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Connect_Setting
(
2
,
8
,
1
);
AMT630H_GUI_Bluetooth_Connect_Setting
(
2
,
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
break
;
case
MENU_ITEM_CLOCK_SETTING
:
/*15 时钟设置*/
AMT630H_GUI_SETTING
();
...
...
@@ -2939,11 +3194,11 @@ void AMT630H_GUI_ReadPosittion_Display(void)
break
;
case
MENU_ITEM_UNIT_KM
:
/*22 选中公制*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Unit_Setting
(
0
);
AMT630H_GUI_Unit_Setting
(
MENU_ITEM_UNIT_KM
);
break
;
case
MENU_ITEM_UNIT_MILE
:
/*23 选中英制*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Unit_Setting
(
1
);
AMT630H_GUI_Unit_Setting
(
MENU_ITEM_UNIT_MILE
);
break
;
case
MENU_ITEM_LANGUAGE_SETTING
:
/*24 语言设置*/
AMT630H_GUI_SETTING
();
...
...
@@ -2951,11 +3206,11 @@ void AMT630H_GUI_ReadPosittion_Display(void)
break
;
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*25 选中中文*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Language_Setting
(
0
);
AMT630H_GUI_Language_Setting
(
MENU_ITEM_LANGUAGE_CHINESE
);
break
;
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*26 选中英文*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Language_Setting
(
0
);
AMT630H_GUI_Language_Setting
(
MENU_ITEM_LANGUAGE_ENGLISH
);
break
;
case
MENU_ITEM_FAULT_INFORMATION
:
/*27 故障信息*/
AMT630H_GUI_SETTING
();
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
View file @
cc61289f
...
...
@@ -12,34 +12,42 @@ typedef enum
PIC_Max
,
}
_Picture_Mode
;
/*
日间夜间自动
*/
/*
显示模式
*/
typedef
enum
{
ModeDAY
=
0
,
/
/日间中文
ModeDAY
=
0
,
/
*日间*/
ModeNIGHT
,
ModeATUO
,
}
_g_u8Display_Mode
;
/*语言设置*/
typedef
enum
{
CH
=
0
,
CH
=
0
,
/*中文*/
EN
,
}
_g_u8Language
;
/*背光设置*/
typedef
enum
{
Backlight_1
=
0
,
Backlight_2
,
Backlight_3
,
Backlight_5
=
0
,
Backlight_4
,
Backlight_5
,
Backlight_3
,
Backlight_2
,
Backlight_1
,
Backlight_ATUO
,
}
_g_u8Backlight
;
typedef
enum
{
Metric
=
0
,
/*公制*/
Imperial
,
}
_g_u8UnitSetting
;
extern
void
AMT630H_GUI_DisplayProc
(
void
);
...
...
Firmware/Source/Component/Components.h
View file @
cc61289f
...
...
@@ -33,5 +33,8 @@
#include "RTC\RTE_RTC.h"
#include "CAN_Signal\CAN_Lib.h"
#include "CAN_CH0_CAN_Communication_Matrix.h"
#include "Telltales\Telltales_user.h"
#include "Telltales\Telltales_Lib.h"
#endif
Firmware/Source/Component/Line_In/Line_In_user.c
View file @
cc61289f
...
...
@@ -5,17 +5,17 @@
const
Line_In_Attribute_st
g_stLineInAttribute
[
LINE_IN_MAX
]
=
{
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Left
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Right
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
60U
,
20U
,
Get_LINE_IN_High_Beam
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_Efi_Fault
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_ABS
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Auto_Start_Stop
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Oil_Pressure_Alert
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Voltage
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Fuel_Level_Low
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_E
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_S
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Left
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Right
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
60U
,
20U
,
Get_LINE_IN_High_Beam
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
100U
,
20U
,
Get_LINE_IN_Efi_Fault
,
},
{
LEVEL_
LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_ABS
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Auto_Start_Stop
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Oil_Pressure_Alert
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Voltage
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Fuel_Level_Low
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_E
,
},
{
LEVEL_
HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_S
,
},
};
Linelib_uint8_t
Get_LINE_IN_Turn_Left
(
void
)
{
...
...
@@ -33,7 +33,7 @@ Linelib_uint8_t Get_LINE_IN_Turn_Left(void)
Linelib_uint8_t
Get_LINE_IN_Turn_Right
(
void
)
{
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
Lef
tTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
Righ
tTurn_MUC_OUT
))
{
ret
=
1u
;
}
...
...
@@ -46,7 +46,7 @@ Linelib_uint8_t Get_LINE_IN_Turn_Right(void)
Linelib_uint8_t
Get_LINE_IN_High_Beam
(
void
)
{
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
HighBeam_P_In
))
{
ret
=
1u
;
}
...
...
@@ -59,7 +59,7 @@ Linelib_uint8_t Get_LINE_IN_High_Beam(void)
Linelib_uint8_t
Get_LINE_IN_Efi_Fault
(
void
)
{
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
Engine_Failure_MCU
))
{
ret
=
1u
;
}
...
...
@@ -72,7 +72,7 @@ Linelib_uint8_t Get_LINE_IN_Efi_Fault(void)
Linelib_uint8_t
Get_LINE_IN_ABS
(
void
)
{
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
ABS_Faulty_lights
))
{
ret
=
1u
;
}
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
cc61289f
...
...
@@ -98,6 +98,7 @@ static void LED_Turn_Left_Execution(Tellib_uint16_t led_status)
// RTE_GPIO_Set_Level(TurnLeft_MUC_OUT, LED_LINEOUT_Low);
// }
}
/*硬线-P9 高电平*/
static
Tellib_uint16_t
LED_Turn_Right_Judgement
(
void
)
{
...
...
@@ -189,14 +190,14 @@ static Tellib_uint16_t LED_ABS_Judgement(void)
}
static
void
LED_ABS_Execution
(
Tellib_uint16_t
led_status
)
{
//
if (led_status == 1u)
//
{
// RTE_GPIO_Set_Level(ABS
_MUC_OUT, LED_LINEOUT_High);
//
}
//
else
//
{
//
RTE_GPIO_Set_Level(ABS_MUC_OUT, LED_LINEOUT_Low);
//
}
//
if (led_status == 1u)
//
{
// RTE_GPIO_Set_Level(OilPressureAlert
_MUC_OUT, LED_LINEOUT_High);
//
}
//
else
//
{
//
RTE_GPIO_Set_Level(ABS_MUC_OUT, LED_LINEOUT_Low);
//
}
}
/*硬线-P12 低电平*/
static
Tellib_uint16_t
LED_Auto_Start_Stop_Judgement
(
void
)
...
...
@@ -284,23 +285,24 @@ static void LED_TCS_Execution(Tellib_uint16_t led_status)
/*信号来源:ISG_111*/
static
Tellib_uint16_t
LED_HEV_Judgement
(
void
)
{
//Tellib_uint16_t LED_STATE = 0u;
//if (CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CAN_0x402_Msg_Count) == CAN_SIG_LOST)
//{
// LED_STATE = 0u;
//}
//else
//{
// if( == 1)
// {
// LED_STATE = 1u;
// }
// else
// {
// LED_STATE = 0u;
// }
//}
//return LED_STATE;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_111_Msg_Count
)
==
CAN_SIG_LOST
)
{
LED_STATE
=
0u
;
}
else
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0x01UL
)
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
}
static
void
LED_HEV_Execution
(
Tellib_uint16_t
led_status
)
{
...
...
Firmware/Source/Component/Telltales/Telltales_user.h
View file @
cc61289f
#ifndef TELLTALES_USER_H
#define TELLTALES_USER_H
#include "Telltales_Lib.h"
typedef
enum
{
em_LED_Turn_Left
,
...
...
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