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
df085f6b
Commit
df085f6b
authored
Sep 15, 2024
by
王雅楠
🍎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:1.新增导航界面时间、车速、燃油走格等显示函数2.修改蓝牙名称与同步联系人显示方式为字库显示
parent
c8de6414
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
447 additions
and
203 deletions
+447
-203
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+9
-1
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+438
-202
No files found.
Firmware/Source/Application/BlueTooth.c
View file @
df085f6b
...
@@ -49,7 +49,15 @@ void BlueToothService(void)
...
@@ -49,7 +49,15 @@ void BlueToothService(void)
if
((
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Outgoing
)
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Talking
))
if
((
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Outgoing
)
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
||
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Talking
))
{
{
Menu_Change_Branch_To_Item
(
MENU_BRANCH_ANIMATION
,
MENU_ITEM_MAIN_ITEM
);
if
(
g_u8Cursor_Posittion
==
MENU_ITEM_PHONE_CONNECT_APP
)
/*导航界面*/
{
;
}
else
/*非导航界面*/
{
Menu_Change_Branch_To_Item
(
MENU_BRANCH_ANIMATION
,
MENU_ITEM_MAIN_ITEM
);
}
}
}
SetUUIDData
((
char
*
)
UUIDConfigBuf
,
22
);
SetUUIDData
((
char
*
)
UUIDConfigBuf
,
22
);
if
(
OTA_Update_Flag
==
1
)
if
(
OTA_Update_Flag
==
1
)
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
df085f6b
...
@@ -35,13 +35,13 @@ void AMT630H_GUI_Language_Information(void);
...
@@ -35,13 +35,13 @@ void AMT630H_GUI_Language_Information(void);
void
AMT630H_GUI_Unit_Information
(
void
);
void
AMT630H_GUI_Unit_Information
(
void
);
void
AMT630H_GUI_Display_Mode_Information
(
void
);
void
AMT630H_GUI_Display_Mode_Information
(
void
);
void
AMT630H_GUI_Backlight_Information
(
void
);
void
AMT630H_GUI_Backlight_Information
(
void
);
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
sync_contacts
,
uint8_t
Connect_ON
);
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
Connect_ON
);
void
AMT630H_GUI_Clock_Information
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
);
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
);
/*时钟设置*/
static
void
AMT630H_GUI_Clock_Setting
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
,
uint8_t
Clock_BIT
);
/*时钟设置*/
void
AMT630H_GUI_Backlight_Setting
(
Menu_Item_en_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_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_Bluetooth_Connect_Setting
(
uint8_t
select
,
uint8_t
Connect_ON
);
/*蓝牙连接*/
void
AMT630H_GUI_Unit_Setting
(
Menu_Interface_en_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_Language_Setting
(
Menu_Interface_en_t
select
);
/*语言设置*/
void
AMT630H_GUI_Phone_Connect_Win
(
void
);
/*手机互联*/
void
AMT630H_GUI_Phone_Connect_Win
(
void
);
/*手机互联*/
...
@@ -50,6 +50,10 @@ void AMT630H_GUI_ReadPosittion_Display(void);
...
@@ -50,6 +50,10 @@ void AMT630H_GUI_ReadPosittion_Display(void);
static
void
AMT630H_GUI_PhoneConnect_Light
();
static
void
AMT630H_GUI_PhoneConnect_Light
();
static
void
AMT630H_GUI_PhoneConnect_TIME
(
uint16_t
Hour
,
uint16_t
Minute
);
static
void
AMT630H_GUI_PhoneConnect_TIME
(
uint16_t
Hour
,
uint16_t
Minute
);
static
void
AMT630H_GUI_PhoneConnect_VSpeed
(
uint16_t
VechileSpeed
);
static
void
AMT630H_GUI_PhoneConnect_VSpeed
(
uint16_t
VechileSpeed
);
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
);
void
AMT630H_GUI_Background
()
void
AMT630H_GUI_Background
()
...
@@ -89,9 +93,9 @@ void AMT630H_GUI_Fault_Information(void)
...
@@ -89,9 +93,9 @@ void AMT630H_GUI_Fault_Information(void)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0166_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0166_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0091_567_356);20231201.1.G
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0167_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0167_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0093_574_292);20231201HJ
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0168_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0168_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0169_353_227
);
/*历史故障*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0169_353_227
);
/*历史故障*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0170_354_162
);
/*当前故障*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0170_354_162
);
/*当前故障*/
...
@@ -105,15 +109,20 @@ void AMT630H_GUI_Fault_Information(void)
...
@@ -105,15 +109,20 @@ void AMT630H_GUI_Fault_Information(void)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0090_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0090_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0091_567_356);20231201.1.G
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0092_368_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0092_368_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0093_574_292);20231201HJ
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0094_375_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0094_375_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0096_338_228
);
/*Fault history*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0096_338_228
);
/*Fault history*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0097_334_163
);
/*current fault*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0097_334_163
);
/*current fault*/
AMT630H_GUI_FaultCode
(
Get_FaultCode_Lost
(),
Get_FaultCode_Valid
(),
Get_Current_Hight_FaultCode
(),
Get_Current_Mid_FaultCode
());
AMT630H_GUI_FaultCode
(
Get_FaultCode_Lost
(),
Get_FaultCode_Valid
(),
Get_Current_Hight_FaultCode
(),
Get_Current_Mid_FaultCode
());
}
}
/*蓝牙名称改为字库显示*/
/* RGB 0 0 0 --- 黑*/
/* RGB 0XFF 0XFF 0XFF --- 白*/
//PackedTransfer_LabelsList( 0x5022,(uint8_t *)BlueToothName, 40);
//SetPageText(GRAPHICS_PAGE_0, 0x5022, 570 , 165 , 200, ALIGN_LEFT, 0, TEXT_COLOR(0,0,0,0XFF),TEXT_LINE_OFFSET(1,1));
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
{
...
@@ -125,9 +134,9 @@ void AMT630H_GUI_Fault_Information(void)
...
@@ -125,9 +134,9 @@ void AMT630H_GUI_Fault_Information(void)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0353_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0353_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0279_567_356);20231201.1.G
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0354_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0354_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0281_574_292);20231201HJ
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0355_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0355_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0356_353_227
);
/*历史故障*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0356_353_227
);
/*历史故障*/
...
@@ -142,16 +151,22 @@ void AMT630H_GUI_Fault_Information(void)
...
@@ -142,16 +151,22 @@ void AMT630H_GUI_Fault_Information(void)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0277_728_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0277_728_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0278_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0278_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0279_567_356);20231201.1.G
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0280_368_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0280_368_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0281_574_292);20231201HJ
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0282_375_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0282_375_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0284_338_228
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0284_338_228
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0285_334_163
);
/*current fault*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0285_334_163
);
/*current fault*/
AMT630H_GUI_FaultCode
(
Get_FaultCode_Lost
(),
Get_FaultCode_Valid
(),
Get_Current_Hight_FaultCode
(),
Get_Current_Mid_FaultCode
());
AMT630H_GUI_FaultCode
(
Get_FaultCode_Lost
(),
Get_FaultCode_Valid
(),
Get_Current_Hight_FaultCode
(),
Get_Current_Mid_FaultCode
());
}
}
/*蓝牙名称改为字库显示*/
/* RGB 0 0 0 --- 黑*/
/* RGB 0XFF 0XFF 0XFF --- 白*/
//PackedTransfer_LabelsList( 0x5022,(uint8_t *)BlueToothName, 40);
//SetPageText(GRAPHICS_PAGE_0, 0x5022, 570 , 165 , 200, ALIGN_LEFT, 0, TEXT_COLOR(0XFF,0XFF,0XFF,0XFF),TEXT_LINE_OFFSET(1,1));
}
}
}
}
...
@@ -649,7 +664,7 @@ static uint16_t Bluetooth_num_night[] = {
...
@@ -649,7 +664,7 @@ static uint16_t Bluetooth_num_night[] = {
* @param[in] sync_contacts 同步联系人
* @param[in] sync_contacts 同步联系人
* @param[in] Connect_ON 0 关 1 开
* @param[in] Connect_ON 0 关 1 开
*/
*/
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
Connect_ON
)
{
{
uint8_t
Contect_totalnumber
;
uint8_t
Contect_totalnumber
;
Contect_totalnumber
=
0
;
Contect_totalnumber
=
0
;
...
@@ -693,10 +708,10 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
...
@@ -693,10 +708,10 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
}
}
}
}
/*蓝牙名称改为字库显示*/
/*蓝牙名称改为字库显示*/
/* RGB 0 0 0 ---
白
*/
/* RGB 0 0 0 ---
黑
*/
/* RGB 0XFF 0XFF 0XFF ---
黑
*/
/* RGB 0XFF 0XFF 0XFF ---
白
*/
PackedTransfer_LabelsList
(
0x
4
022
,(
uint8_t
*
)
BlueToothName
,
40
);
PackedTransfer_LabelsList
(
0x
5
022
,(
uint8_t
*
)
BlueToothName
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x
4
022
,
570
,
165
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
SetPageText
(
GRAPHICS_PAGE_0
,
0x
5
022
,
570
,
165
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
{
...
@@ -740,8 +755,8 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
...
@@ -740,8 +755,8 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
/*蓝牙名称改为字库显示*/
/*蓝牙名称改为字库显示*/
/* RGB 0 0 0 --- 白*/
/* RGB 0 0 0 --- 白*/
/* RGB 0XFF 0XFF 0XFF --- 黑*/
/* RGB 0XFF 0XFF 0XFF --- 黑*/
PackedTransfer_LabelsList
(
0x
4
022
,(
uint8_t
*
)
BlueToothName
,
40
);
PackedTransfer_LabelsList
(
0x
5
022
,(
uint8_t
*
)
BlueToothName
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x
4
022
,
570
,
165
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
SetPageText
(
GRAPHICS_PAGE_0
,
0x
5
022
,
570
,
165
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
/*遍历同步联系人数组*/
/*遍历同步联系人数组*/
for
(
int
i
=
0
;
i
<
20
;
i
++
)
for
(
int
i
=
0
;
i
<
20
;
i
++
)
...
@@ -761,14 +776,14 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
...
@@ -761,14 +776,14 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
if
(
Contect_totalnumber
==
1
)
if
(
Contect_totalnumber
==
1
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
/*【括号】 一位数 */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
/*【括号】 一位数 */
PackedTransfer_LabelsList
(
0x
4
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
PackedTransfer_LabelsList
(
0x
7
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x
4022
,
605
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
SetPageText
(
GRAPHICS_PAGE_0
,
0x
7022
,
605
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
else
if
(
Contect_totalnumber
==
2
)
else
if
(
Contect_totalnumber
==
2
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
/*【括号】 两位数 */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
/*【括号】 两位数 */
PackedTransfer_LabelsList
(
0x
4
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
PackedTransfer_LabelsList
(
0x
7
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x
4022
,
598
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
SetPageText
(
GRAPHICS_PAGE_0
,
0x
7022
,
612
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
// else if(Contect_totalnumber == 3)
// else if(Contect_totalnumber == 3)
// {
// {
...
@@ -782,14 +797,14 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
...
@@ -782,14 +797,14 @@ void AMT630H_GUI_Bluetooth_Information(uint8_t sync_contacts, uint8_t Connect_ON
if
(
Contect_totalnumber
==
1
)
if
(
Contect_totalnumber
==
1
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0223_590_287
);
/*【括号】 一位数 */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0223_590_287
);
/*【括号】 一位数 */
PackedTransfer_LabelsList
(
0x
4
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
PackedTransfer_LabelsList
(
0x
7
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x
4022
,
605
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
SetPageText
(
GRAPHICS_PAGE_0
,
0x
7022
,
605
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
else
if
(
Contect_totalnumber
==
2
)
else
if
(
Contect_totalnumber
==
2
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0224_583_287
);
/*【括号】 两位数 */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0224_583_287
);
/*【括号】 两位数 */
PackedTransfer_LabelsList
(
0x
4
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
PackedTransfer_LabelsList
(
0x
7
022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x
4022
,
598
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
SetPageText
(
GRAPHICS_PAGE_0
,
0x
7022
,
612
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
// else if(Contect_totalnumber == 3)
// else if(Contect_totalnumber == 3)
// {
// {
...
@@ -2085,8 +2100,10 @@ static uint16_t Bluetooth_Connect_num_night[] = {
...
@@ -2085,8 +2100,10 @@ static uint16_t Bluetooth_Connect_num_night[] = {
* @param[in] sync_contacts 同步联系人
* @param[in] sync_contacts 同步联系人
* @param[in] Connect_ON 0 关 1 开
* @param[in] Connect_ON 0 关 1 开
*/
*/
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
Menu_Item_en_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
Menu_Item_en_t
select
,
uint8_t
Connect_ON
)
{
{
uint8_t
Contect_totalnumber
;
Contect_totalnumber
=
0
;
if
(
g_u8Display_Mode
==
ModeDAY
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
{
if
(
g_u8Language
==
CH
)
if
(
g_u8Language
==
CH
)
...
@@ -2095,7 +2112,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2095,7 +2112,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
/*返回*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_345
);
/*返回*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
/*同步联系人*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0139_369_287
);
/*同步联系人*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
/*蓝牙连接*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0142_367_226
);
/*蓝牙连接*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
/*HI3EA0*/
//
SetPagePic(GRAPHICS_PAGE_0, Pic_0055_570_165); /*HI3EA0*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
/*蓝牙名称*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
/*蓝牙名称*/
switch
(
select
)
switch
(
select
)
...
@@ -2120,34 +2137,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2120,34 +2137,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
else
else
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141_584_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141_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
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
}
else
if
(
g_u8Language
==
EN
)
else
if
(
g_u8Language
==
EN
)
{
{
...
@@ -2155,7 +2145,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2155,7 +2145,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0037_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0037_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0054_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0054_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0055_570_165
);
//
SetPagePic(GRAPHICS_PAGE_0, Pic_0055_570_165);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0056_377_166
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0056_377_166
);
switch
(
select
)
switch
(
select
)
{
{
...
@@ -2182,34 +2172,12 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2182,34 +2172,12 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0052_574_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0052_574_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
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
}
/*蓝牙名称改为字库显示*/
/* RGB 0 0 0 --- 黑*/
/* RGB 0XFF 0XFF 0XFF --- 白*/
PackedTransfer_LabelsList
(
0x5022
,(
uint8_t
*
)
BlueToothName
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x5022
,
570
,
165
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
{
...
@@ -2219,7 +2187,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2219,7 +2187,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0326_369_287
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0329_367_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
//
SetPagePic(GRAPHICS_PAGE_0, Pic_0241_570_165);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0330_367_163
);
switch
(
select
)
switch
(
select
)
{
{
...
@@ -2235,7 +2203,6 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2235,7 +2203,6 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
default:
default:
break
;
break
;
}
}
/*蓝牙连接*/
/*蓝牙连接*/
if
(
Connect_ON
==
0
)
if
(
Connect_ON
==
0
)
{
{
...
@@ -2244,34 +2211,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2244,34 +2211,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
else
else
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_584_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0328_584_226
);
}
}
/*蓝牙联系人选择*/
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0223_590_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0224_583_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
}
else
if
(
g_u8Language
==
EN
)
else
if
(
g_u8Language
==
EN
)
{
{
...
@@ -2279,7 +2219,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2279,7 +2219,7 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_348
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0237_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0237_376_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0240_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0240_377_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0241_570_165
);
//
SetPagePic(GRAPHICS_PAGE_0, Pic_0241_570_165);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0242_377_166
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0242_377_166
);
switch
(
select
)
switch
(
select
)
{
{
...
@@ -2296,7 +2236,6 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2296,7 +2236,6 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
default:
default:
break
;
break
;
}
}
/*蓝牙连接*/
/*蓝牙连接*/
if
(
Connect_ON
==
0
)
if
(
Connect_ON
==
0
)
{
{
...
@@ -2306,37 +2245,67 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -2306,37 +2245,67 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0238_574_226
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0238_574_226
);
}
}
/*蓝牙联系人选择*/
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
sync_contactsNumber
;
sync_contactsNumber
=
sync_contacts
;
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0223_590_287
);
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
604
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0224_583_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_Connect_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
x
=
612
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
sync_contactsNumber
);
}
}
}
/*蓝牙名称改为字库显示*/
/* RGB 0 0 0 --- 黑*/
/* RGB 0XFF 0XFF 0XFF --- 白*/
PackedTransfer_LabelsList
(
0x5022
,(
uint8_t
*
)
BlueToothName
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x5022
,
570
,
165
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
/*遍历同步联系人数组*/
for
(
int
i
=
0
;
i
<
20
;
i
++
)
{
if
(
PhoneNumberTotal
[
i
]
!=
0
)
{
Contect_totalnumber
++
;
}
else
{
break
;
}
}
/*同步联系人数字显示(字库版)*/
if
(
g_u8Display_Mode
==
ModeDAY
)
{
if
(
Contect_totalnumber
==
1
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
/*【括号】 一位数 */
PackedTransfer_LabelsList
(
0x7022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x7022
,
605
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
else
if
(
Contect_totalnumber
==
2
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
/*【括号】 两位数 */
PackedTransfer_LabelsList
(
0x7022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x7022
,
612
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
// else if(Contect_totalnumber == 3)
// {
// SetPagePic(GRAPHICS_PAGE_0, ); /*【括号】 三位数 */
// PackedTransfer_LabelsList( 0x4022,(uint8_t *)PhoneNumberTotal, 40);
// SetPageText(GRAPHICS_PAGE_0, 0x4022, 570 , 165 , 200, ALIGN_LEFT, 0, TEXT_COLOR(0XFF,0XFF,0XFF,0XFF),TEXT_LINE_OFFSET(1,1));
// }
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
Contect_totalnumber
==
1
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0223_590_287
);
/*【括号】 一位数 */
PackedTransfer_LabelsList
(
0x7022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x7022
,
605
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
else
if
(
Contect_totalnumber
==
2
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0224_583_287
);
/*【括号】 两位数 */
PackedTransfer_LabelsList
(
0x7022
,(
uint8_t
*
)
PhoneNumberTotal
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x7022
,
612
,
289
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
// else if(Contect_totalnumber == 3)
// {
// SetPagePic(GRAPHICS_PAGE_0, ); /*【括号】 三位数 */
// PackedTransfer_LabelsList( 0x4022,(uint8_t *)PhoneNumberTotal, 40);
// SetPageText(GRAPHICS_PAGE_0, 0x4022, 570 , 165 , 200, ALIGN_LEFT, 0, TEXT_COLOR(0,0,0,0XFF),TEXT_LINE_OFFSET(1,1));
// }
}
}
}
}
...
@@ -2730,6 +2699,18 @@ static const uint16_t NumbeList_Voltage_DAY[] = {
...
@@ -2730,6 +2699,18 @@ static const uint16_t NumbeList_Voltage_DAY[] = {
Pic_0566_949_465
,
Pic_0566_949_465
,
Pic_0576_945_458
,
Pic_0576_945_458
,
};
};
static
const
uint16_t
NumbeList_PhoneConnect_Voltage
[]
=
{
Pic_0453_688_516
,
Pic_0455_692_516
,
Pic_0456_689_516
,
Pic_0457_689_516
,
Pic_0458_688_516
,
Pic_0459_689_516
,
Pic_0460_689_516
,
Pic_0461_688_516
,
Pic_0462_688_516
,
Pic_0463_689_516
,
};
static
const
uint16_t
NumbeList_Voltage_NIGHT
[]
=
{
static
const
uint16_t
NumbeList_Voltage_NIGHT
[]
=
{
Pic_0673_943_451
,
Pic_0673_943_451
,
Pic_0675_948_451
,
Pic_0675_948_451
,
...
@@ -2840,6 +2821,18 @@ static const uint16_t PICList_ESpeed_NIGHT[] = {
...
@@ -2840,6 +2821,18 @@ static const uint16_t PICList_ESpeed_NIGHT[] = {
Pic_0717_731_111
,
Pic_0717_731_111
,
Pic_0716_782_125
,
Pic_0716_782_125
,
};
};
static
const
uint16_t
NumbeList_PhoneConnect_ESpeed
[]
=
{
Pic_0385_63_554
,
Pic_0386_73_554
,
Pic_0387_64_554
,
Pic_0388_65_554
,
Pic_0389_62_554
,
Pic_0390_64_554
,
Pic_0391_64_554
,
Pic_0392_63_554
,
Pic_0393_63_554
,
Pic_0394_64_554
,
};
static
const
uint16_t
PICList_Fuel
[]
=
{
static
const
uint16_t
PICList_Fuel
[]
=
{
Pic_0562_315_473
,
Pic_0562_315_473
,
Pic_0555_366_473
,
Pic_0555_366_473
,
...
@@ -2850,6 +2843,16 @@ static const uint16_t PICList_Fuel[] = {
...
@@ -2850,6 +2843,16 @@ static const uint16_t PICList_Fuel[] = {
Pic_0560_586_473
,
Pic_0560_586_473
,
Pic_0561_623_473
,
Pic_0561_623_473
,
};
};
static
const
uint16_t
PICList_PhoneConnect_Fuel
[]
=
{
Pic_0414_76_536
,
Pic_0416_105_536
,
Pic_0417_134_536
,
Pic_0418_163_536
,
Pic_0419_192_536
,
Pic_0420_221_536
,
Pic_0421_250_536
,
Pic_0422_279_536
,
};
// static const uint16_t PICList_Fuel_RED[] = {
// static const uint16_t PICList_Fuel_RED[] = {
// Pic_0562_315_473,
// Pic_0562_315_473,
// Pic_0555_366_473,
// Pic_0555_366_473,
...
@@ -2992,11 +2995,11 @@ static void AMT630H_GUI_PhoneConnect_Light()
...
@@ -2992,11 +2995,11 @@ static void AMT630H_GUI_PhoneConnect_Light()
}
}
if
(
GetPhoneMirrorst
()
==
1
)
/*WIFI指示灯*/
if
(
GetPhoneMirrorst
()
==
1
)
/*WIFI指示灯*/
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
737_875_23
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
465_881_487
);
}
}
if
(
BlueToothPhoneData
.
BlueToothSignalSate
==
BlueTooth_Connection
)
/*蓝牙指示灯*/
if
(
BlueToothPhoneData
.
BlueToothSignalSate
==
BlueTooth_Connection
)
/*蓝牙指示灯*/
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
740_682_21
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0
468_819_486
);
}
}
}
}
/*
/*
...
@@ -3214,6 +3217,48 @@ static void AMT630H_GUI_Telephone()
...
@@ -3214,6 +3217,48 @@ static void AMT630H_GUI_Telephone()
}
}
}
}
/*
*NAME : AMT630H_GUI_PhoneConnect_Telephone
*FUNCTION : 导航界面来电显示函数
*PARAMETER : NULL
*RETURN : NULL
*/
static
void
AMT630H_GUI_PhoneConnect_Telephone
()
{
if
(
BlueToothPhoneData
.
BlueToothSignalSate
==
BlueTooth_Connection
)
{
if
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Outgoing
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0451_751_555
);
if
(
TextPara
[
TEXT_NUM_PHONE_NUMBER
].
Vaild
==
0X01
)
{
PackedTransfer_LabelsList
(
0x4009
,(
uint8_t
*
)
PhoneNumber
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x4009
,
786
,
561
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
else
if
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Talking
)
{
//SetPagePic(GRAPHICS_PAGE_0, Pic_0943_751_555);
if
(
TextPara
[
TEXT_NUM_PHONE_NUMBER
].
Vaild
==
0X01
)
{
PackedTransfer_LabelsList
(
0x4009
,(
uint8_t
*
)
PhoneNumber
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x4009
,
786
,
561
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
else
if
(
BlueToothPhoneData
.
BlueToothPhoneSate
==
Phone_Incoming
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0450_751_555
);
if
(
TextPara
[
TEXT_NUM_PHONE_NUMBER
].
Vaild
==
0X01
)
{
PackedTransfer_LabelsList
(
0x4009
,(
uint8_t
*
)
PhoneNumber
,
40
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x4009
,
786
,
561
,
200
,
ALIGN_LEFT
,
0
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
}
}
else
{
;
}
}
/*
/*
*NAME : AMT630H_GUI_Fuel
*NAME : AMT630H_GUI_Fuel
...
@@ -3409,6 +3454,92 @@ static void AMT630H_GUI_Fuel_SelfCheck(uint8_t Fuel)
...
@@ -3409,6 +3454,92 @@ static void AMT630H_GUI_Fuel_SelfCheck(uint8_t Fuel)
}
}
}
}
/*
*NAME : AMT630H_GUI_PhoneConnect_Fuel
*FUNCTION : 投屏界面车速显示
*PARAMETER : uint8_t Fuel-燃油等级 0 - 红区一格 1 - 正常一格
*RETURN : NULL
*/
static
void
AMT630H_GUI_PhoneConnect_Fuel
(
uint8_t
Fuel
)
{
static
uint8_t
s_FuelLowTime
=
0U
;
uint8_t
FuelLevel
;
FuelLevel
=
Fuel
;
if
(
Fuel
==
0
)
{
FuelLevel
=
1
;
}
else
{
;
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0411_56_533
);
/*E*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0412_314_533
);
/*F*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0413_74_533
);
/*燃油格 组*/
/*Fuel=0时 黄色燃油灯1HZ闪烁*/
if
(
Fuel
==
0
)
{
if
(
FLASH_SYNC_1Hz
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0423_26_529
);
/*黄色燃油灯*/
}
s_FuelLowTime
=
0
;
}
else
if
(
Fuel
==
1
)
{
s_FuelLowTime
++
;
if
(
s_FuelLowTime
<=
15
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0552_503_529
);
/*黄色燃油灯*/
}
if
(
s_FuelLowTime
>
20
)
{
s_FuelLowTime
=
0
;
}
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0551_503_529
);
/*黑色燃油灯*/
s_FuelLowTime
=
0
;
}
/*燃油格数走格*/
if
(
FuelLevel
>
0
)
{
if
(
FuelLevel
!=
g_u16_GUI_PerFuelLevel
)
{
for
(
uint8_t
i
=
0
;
i
<
g_u16_GUI_PerFuelLevel
;
i
++
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
PICList_PhoneConnect_Fuel
[
i
]);
}
if
(
FuelLevel
>
g_u16_GUI_PerFuelLevel
)
{
g_u16_GUI_PerFuelLevel
++
;
}
else
if
((
FuelLevel
<
g_u16_GUI_PerFuelLevel
)
&&
(
g_u16_GUI_PerFuelLevel
!=
0
))
{
g_u16_GUI_PerFuelLevel
--
;
}
else
{
;
}
}
if
(
FuelLevel
==
g_u16_GUI_PerFuelLevel
)
{
g_u16_GUI_PerFuelLevel
=
FuelLevel
;
for
(
uint8_t
i
=
0
;
i
<
g_u16_GUI_PerFuelLevel
;
i
++
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
PICList_PhoneConnect_Fuel
[
i
]);
}
}
}
else
{
//SetPagePic(GRAPHICS_PAGE_0, Pic_0414_76_536); /*燃油红区*/
}
}
/*电压显示函数*/
/*电压显示函数*/
static
void
AMT630H_GUI_Voltage
(
uint16_t
Voltage
)
static
void
AMT630H_GUI_Voltage
(
uint16_t
Voltage
)
...
@@ -3554,6 +3685,69 @@ static void AMT630H_GUI_Voltage(uint16_t Voltage)
...
@@ -3554,6 +3685,69 @@ static void AMT630H_GUI_Voltage(uint16_t Voltage)
}
}
}
}
/*
*NAME : AMT630H_GUI_PhoneConnect_Voltage
*FUNCTION : 导航界面电压显示函数
*PARAMETER : uint16_t Voltage - 电压值
*RETURN : NULL
*/
static
void
AMT630H_GUI_PhoneConnect_Voltage
(
uint16_t
Voltage
)
{
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
VoltageNumber
;
VoltageNumber
=
Voltage
/
10
;
if
(
Voltage
%
10
>
5
)
{
VoltageNumber
++
;
}
uint16_t
Voltage_Hundred
;
uint16_t
Voltage_Ten
;
uint16_t
Voltage_Unit
;
uint16_t
Front
;
/*数据处理*/
Voltage_Hundred
=
VoltageNumber
/
100
;
Voltage_Ten
=
(
VoltageNumber
%
100
)
/
10
;
Voltage_Unit
=
VoltageNumber
%
10
;
Front
=
Voltage_Hundred
*
10
+
Voltage_Ten
;
DisplayNumPara
.
NumList
=
NumbeList_PhoneConnect_Voltage
;
if
((
VoltageNumber
>=
100
)
&&
(
VoltageNumber
<
1000
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0452_717_516
);
/* V */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0454_704_526
);
/* . */
DisplayNumPara
.
x
=
707
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
0
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Voltage_Unit
);
DisplayNumPara
.
x
=
693
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
10
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Front
);
}
else
if
(
0
<=
VoltageNumber
<
100
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0452_712_516
);
/* V */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0454_699_526
);
/* . */
DisplayNumPara
.
x
=
688
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
14
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VoltageNumber
);
}
}
/*大计里程显示函数*/
/*大计里程显示函数*/
static
void
AMT630H_GUI_ODO
(
uint32_t
ODO
,
uint8_t
Uint
)
static
void
AMT630H_GUI_ODO
(
uint32_t
ODO
,
uint8_t
Uint
)
{
{
...
@@ -3942,7 +4136,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
...
@@ -3942,7 +4136,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
{
{
if
(
VSpeedNumber
==
1
)
if
(
VSpeedNumber
==
1
)
{
{
DisplayNumPara
.
x
=
492
;
// 1的宽度与其他数字不同 坐标没给
DisplayNumPara
.
x
=
492
;
}
}
else
else
{
{
...
@@ -4005,7 +4199,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
...
@@ -4005,7 +4199,7 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
{
{
if
(
VSpeedNumber
==
1
)
if
(
VSpeedNumber
==
1
)
{
{
DisplayNumPara
.
x
=
492
;
// 1的宽度与其他数字不同 坐标没给
DisplayNumPara
.
x
=
492
;
}
}
else
else
{
{
...
@@ -4038,64 +4232,64 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
...
@@ -4038,64 +4232,64 @@ static void AMT630H_GUI_VSpeed(uint16_t VSpeed)
static
void
AMT630H_GUI_PhoneConnect_VSpeed
(
uint16_t
VSpeed
)
static
void
AMT630H_GUI_PhoneConnect_VSpeed
(
uint16_t
VSpeed
)
{
{
if
(
g_u8UnitSetting
==
Metric
)
if
(
g_u8UnitSetting
==
Metric
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0398_632_551
);
/*单位 km/h */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0398_632_551
);
/*单位 km/h */
}
}
else
if
(
g_u8UnitSetting
==
Imperial
)
else
if
(
g_u8UnitSetting
==
Imperial
)
{
{
//SetPagePic(GRAPHICS_PAGE_0, Pic_0942_634_551); /*单位 mph/h */ /*未更改pinbin文件待解*/
//SetPagePic(GRAPHICS_PAGE_0, Pic_0942_634_551); /*单位 mph/h */ /*未更改pinbin文件待解*/
}
}
else
else
{
{
;
;
}
}
/*数据处理*/
/*数据处理*/
DISPLAY_NUM_ST
DisplayNumPara
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
VSpeedNumber
;
uint16_t
VSpeedNumber
;
VSpeedNumber
=
VSpeed
;
VSpeedNumber
=
VSpeed
;
DisplayNumPara
.
NumList
=
NumbeList_PhoneConnect_VSpeed
;
DisplayNumPara
.
NumList
=
NumbeList_PhoneConnect_VSpeed
;
if
(
100
<=
VSpeedNumber
)
if
(
100
<=
VSpeedNumber
)
{
{
DisplayNumPara
.
x
=
544
;
DisplayNumPara
.
x
=
544
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
3
;
DisplayNumPara
.
MinDigits
=
3
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VSpeedNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VSpeedNumber
);
}
}
else
if
((
10
<=
VSpeedNumber
))
else
if
((
10
<=
VSpeedNumber
))
{
{
DisplayNumPara
.
x
=
514
;
DisplayNumPara
.
x
=
514
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VSpeedNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VSpeedNumber
);
}
}
else
if
(
0
<=
VSpeedNumber
)
else
if
(
0
<=
VSpeedNumber
)
{
if
(
VSpeedNumber
==
1
)
{
{
if
(
VSpeedNumber
==
1
)
DisplayNumPara
.
x
=
502
;
{
DisplayNumPara
.
x
=
502
;
}
else
{
DisplayNumPara
.
x
=
484
;
}
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VSpeedNumber
);
}
}
else
else
{
{
;
DisplayNumPara
.
x
=
484
;
}
}
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
1
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
VSpeedNumber
);
}
else
{
;
}
}
}
/*转速显示函数*/
/*转速显示函数*/
...
@@ -4180,7 +4374,35 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
...
@@ -4180,7 +4374,35 @@ static void AMT630H_GUI_ESpeed(uint16_t ESpeed)
;
;
}
}
}
}
/*
*NAME : AMT630H_GUI_PhoneConnect_ESpeed
*FUNCTION : 投屏界面转速显示
*PARAMETER : uint16_t ESpeed-转速
*RETURN : NULL
*/
static
void
AMT630H_GUI_PhoneConnect_ESpeed
(
uint16_t
ESpeed
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0384_103_570
);
/* 转速单位x1000r/min */
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
ESpeedNumber
;
ESpeedNumber
=
ESpeed
/
1000
;
DisplayNumPara
.
NumList
=
NumbeList_PhoneConnect_ESpeed
;
DisplayNumPara
.
x
=
63
;
/*在UI所给坐标基础上进行调整*/
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
60
;
DisplayNumPara
.
DecimalNum
=
0
;
if
(
ESpeedNumber
>=
10
)
{
DisplayNumPara
.
MinDigits
=
2
;
}
else
{
DisplayNumPara
.
MinDigits
=
1
;
}
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ESpeedNumber
);
}
/******************************************************************************************/
/******************************************************************************************/
/**
/**
* @brief 主界面显示
* @brief 主界面显示
...
@@ -4544,19 +4766,19 @@ void AMT630H_GUI_ReadPosittion_Display(void)
...
@@ -4544,19 +4766,19 @@ void AMT630H_GUI_ReadPosittion_Display(void)
case
MENU_ITEM_BLUETOOTH_CONNECT
:
/*03 蓝牙连接*/
case
MENU_ITEM_BLUETOOTH_CONNECT
:
/*03 蓝牙连接*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Information
(
8
,
Get_Dis_Bluetooth_Open_Close
());
AMT630H_GUI_Bluetooth_Information
(
Get_Dis_Bluetooth_Open_Close
());
break
;
break
;
case
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
:
/*12 蓝牙_开*/
case
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
:
/*12 蓝牙_开*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
8
,
Get_Dis_Bluetooth_Open_Close
());
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
Get_Dis_Bluetooth_Open_Close
());
break
;
break
;
case
MENU_ITEM_BLUETOOTH_SYNC
:
/*13 蓝牙同步联系人*/
case
MENU_ITEM_BLUETOOTH_SYNC
:
/*13 蓝牙同步联系人*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_SYNC
,
8
,
Get_Dis_Bluetooth_Open_Close
());
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_SYNC
,
Get_Dis_Bluetooth_Open_Close
());
break
;
break
;
case
MENU_ITEM_BLUETOOTH_BACK
:
/*14 蓝牙返回*/
case
MENU_ITEM_BLUETOOTH_BACK
:
/*14 蓝牙返回*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_BACK
,
8
,
Get_Dis_Bluetooth_Open_Close
());
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_BACK
,
Get_Dis_Bluetooth_Open_Close
());
break
;
break
;
case
MENU_ITEM_CLOCK_SETTING
:
/*15 时钟设置*/
case
MENU_ITEM_CLOCK_SETTING
:
/*15 时钟设置*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
...
@@ -4702,6 +4924,20 @@ void AMT630H_GUI_ReadPosittion_Display(void)
...
@@ -4702,6 +4924,20 @@ void AMT630H_GUI_ReadPosittion_Display(void)
AMT630H_GUI_PhoneConnect_Light
();
AMT630H_GUI_PhoneConnect_Light
();
AMT630H_GUI_PhoneConnect_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
AMT630H_GUI_PhoneConnect_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
AMT630H_GUI_PhoneConnect_VSpeed
(
VechileSpeed
);
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
);
break
;
break
;
default:
default:
...
...
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