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
0863b27f
Commit
0863b27f
authored
Jul 10, 2024
by
时昊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://tyw-server.synology.me:12345/shihao/haojin750tft
into shihao
parents
54760d04
93d3f63c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1261 additions
and
42 deletions
+1261
-42
HaoJin750TFT.uvoptx
...e/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvoptx
+13
-1
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+5
-0
Can_User.c
Firmware/Source/Application/Can_User.c
+232
-0
Can_User.h
Firmware/Source/Application/Can_User.h
+44
-0
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+955
-39
AMT630H_Datas.h
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
+10
-0
PicBin.h
Firmware/Source/Component/AMT630H/PicBin.h
+2
-2
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvoptx
View file @
0863b27f
...
...
@@ -145,7 +145,7 @@
<SetRegEntry>
<Number>
0
</Number>
<Key>
DLGUARM
</Key>
<Name></Name>
<Name>
d
</Name>
</SetRegEntry>
<SetRegEntry>
<Number>
0
</Number>
...
...
@@ -1092,6 +1092,18 @@
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
<File>
<GroupNumber>
4
</GroupNumber>
<FileNumber>
62
</FileNumber>
<FileType>
1
</FileType>
<tvExp>
0
</tvExp>
<tvExpOptDlg>
0
</tvExpOptDlg>
<bDave2>
0
</bDave2>
<PathWithFileName>
..\..\..\..\Source\Application\Can_User.c
</PathWithFileName>
<FilenameWithoutPath>
Can_User.c
</FilenameWithoutPath>
<RteFlg>
0
</RteFlg>
<bShared>
0
</bShared>
</File>
</Group>
<Group>
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
0863b27f
...
...
@@ -713,6 +713,11 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Application\CAN_CH0_CAN_Communication_Matrix.h
</FilePath>
</File>
<File>
<FileName>
Can_User.c
</FileName>
<FileType>
1
</FileType>
<FilePath>
..\..\..\..\Source\Application\Can_User.c
</FilePath>
</File>
</Files>
</Group>
<Group>
...
...
Firmware/Source/Application/Can_User.c
0 → 100644
View file @
0863b27f
// #include "Can_User.h"
// #include <string.h>
// #include "can.h"
// #include "RTE.h"
// #include "CAN_CH0_CAN_Communication_Matrix.h"
// __align(4)
// uint32_t pRXBuff[CAN_RX_MSG_Block * CAN_CH0_ID_TOTAL_MAX];
// uint32_t pTXBuff[CAN_TX_MSG_Block * CAN_CH0_ID_SEND_TOTAL];
// static RSCAN0BusoffMonitorStruct RSCAN0Busoff;
// void Can_Init(void)
// {
// can_config_st_t Can_Config;
// Can_Config.ch = CAN_CH_0;
// Can_Config.freq = CAN_500Kbps;
// Can_Config.MASK[0] = 0x001fffffU;
// Can_Config.MASK[1] = 0x000fffffU;
// Can_Config.MASK[2] = 0x1fffffffU;
// Can_Config.MASK[3] = 0x1fffffffU;
// Can_Config.rx_callback = Can_Rx_Cak;
// COM_CAN_Init();
// rte_can_init(&Can_Config);
// Can_Tx_Apply_Buff();
// Can_RX_Apply_Buff();
// RTE_GPIO_Set_Level(RTE_GPIO_PORT05_PIN02,RTE_GPIO_LEVEL_LOW);
// }
// /**
// * @brief 用于申请RXBUFF CAN0MSG00~CAN0MSG07
// *
// */
// void Can_RX_Apply_Buff(void)
// {
// CAN_RecvMsg.Id = 0x101;
// CAN_RecvMsg.IDE = CAN_Id_Standard;
// CAN_RecvMsg.CacheType = CAN_CacheType_Rx_NoMask;
// CAN_RecvMsg.RTR = CAN_RTR_Data;
// CAN_RecvMsg.Interrupt = ENABLE;
// CAN_MessageCache_DeInit(CAN0MSG01);
// CAN_MessageCache_Init(CAN0MSG01, &CAN_RecvMsg);
// CAN_MessageCache_OverWriteConfig(CAN0MSG01, ENABLE);
// // CAN_RecvMsg.Id = DIAG_ID_Rx_PHY;
// // CAN_RecvMsg.IDE = CAN_Id_Standard;
// // CAN_RecvMsg.CacheType = CAN_CacheType_Rx_NoMask;
// // CAN_RecvMsg.RTR = CAN_RTR_Data;
// // CAN_RecvMsg.Interrupt = ENABLE;
// // CAN_MessageCache_DeInit(CAN0MSG03);
// // CAN_MessageCache_Init(CAN0MSG03, &CAN_RecvMsg);
// // CAN_MessageCache_OverWriteConfig(CAN0MSG03, ENABLE);
// // CAN_RecvMsg.Id = DIAG_ID_Rx_FUN;
// // CAN_RecvMsg.IDE = CAN_Id_Standard;
// // CAN_RecvMsg.CacheType = CAN_CacheType_Rx_NoMask;
// // CAN_RecvMsg.RTR = CAN_RTR_Data;
// // CAN_RecvMsg.Interrupt = ENABLE;
// // CAN_MessageCache_DeInit(CAN0MSG04);
// // CAN_MessageCache_Init(CAN0MSG04, &CAN_RecvMsg);
// // CAN_MessageCache_OverWriteConfig(CAN0MSG04, ENABLE);
// }
// /**
// * @brief 用于申请TXBUFF
// *
// */
// void Can_Tx_Apply_Buff(void)
// {
// CanTxRxMsg CAN_SendMsg;
// CanTxRxMsg CAN_SendMsg_Diag_Tx;
// CAN_SendMsg.Id = 0x500;
// CAN_SendMsg.IDE = CAN_Id_Standard;
// CAN_SendMsg.CacheType = CAN_CacheType_Tx;
// CAN_SendMsg.RTR = CAN_RTR_Data;
// CAN_RecvMsg.Interrupt = DISABLE;
// CAN_SendMsg.DLC = 8;
// for (uint8_t i = 0; i < CAN_SendMsg.DLC; i++)
// {
// CAN_SendMsg.Data[i] = 0;
// }
// CAN_MessageCache_DeInit(CAN0MSG08);
// CAN_MessageCache_Init(CAN0MSG08, &CAN_SendMsg);
// // CAN_SendMsg_Diag_Tx.Id = DIAG_ID_Tx;
// // CAN_SendMsg_Diag_Tx.IDE = CAN_Id_Standard;
// // CAN_SendMsg_Diag_Tx.CacheType = CAN_CacheType_Tx;
// // CAN_SendMsg_Diag_Tx.RTR = CAN_RTR_Data;
// // CAN_SendMsg_Diag_Tx.Interrupt = DISABLE;
// // CAN_SendMsg_Diag_Tx.DLC = 8;
// // for (uint8_t i = 0; i < CAN_SendMsg_Diag_Tx.DLC; i++)
// // {
// // CAN_SendMsg_Diag_Tx.Data[i] = 0;
// // }
// // CAN_MessageCache_DeInit(CAN0MSG09);
// // CAN_MessageCache_Init(CAN0MSG09, &CAN_SendMsg_Diag_Tx);
// }
// /**
// * @brief 用于接收回调函数
// * @code
// */
// void Can_Rx_Cak(CanTxRxMsg *Msg)
// {
// Co_Can_Buff_Set(&CAN_CH0_CanMsgOp, Co_Can_ConvertSubID_CAN_CH0(Msg->Id), Msg->DLC, Msg->Data);
// if ((Msg->Id == DIAG_ID_Rx_FUN) || (Msg->Id == DIAG_ID_Rx_PHY))
// {
// DoCAN_L_Data_Indication(Msg->Id, Msg->DLC, Msg->Data);
// }
// }
// /**
// * @brief CAN库初始化TX/RX
// *
// */
// void COM_CAN_Init(void)
// {
// memset(pRXBuff, 0, sizeof(pRXBuff));
// CAN_CH0_CanMsgOp.CAN_MSG_Analysis = (st_CANMsgStruct *)pRXBuff;
// CAN_CH0_CanMsgOp.pAttrubute = CAN_CH0_CAN_MSG_CONST_ARRAY;
// CAN_CH0_CanMsgOp.Total_Msg = CAN_CH0_ID_TOTAL_MAX;
// CAN_CH0_CanMsgOp.u8CAN_RX_ENABLE = CAN_N_RX_Enable;
// Can_RX_BuffInit(&CAN_CH0_CanMsgOp, CAN_CH0_CAN_MSG_CONST_ARRAY, CAN_CH0_ID_TOTAL_MAX);
// CAN_RX_SetEnable(&CAN_CH0_CanMsgOp, CAN_N_RX_Enable);
// memset(pTXBuff, 0, sizeof(pTXBuff));
// CAN_CH0_CanMsgTxOp.CanMsg = (st_CAN_SendOperation *)pTXBuff;
// Can_TX_BuffInit(&CAN_CH0_CanMsgTxOp, CAN_CH0_CANSendAttr, CAN_CH0_ID_SEND_TOTAL, COM_APP_Process);
// CAN_TX_SetEnable(&CAN_CH0_CanMsgTxOp, CAN_N_TX_Enable);
// }
// /**
// * @brief Buff恢复函数
// * @param deltaTime 调用时间 单位ms 10MS调用
// */
// void Can_BusOff_Recover(uint8_t deltaTime)
// {
// if (get_can_busoff(CAN_CH_0) == 2)
// {
// if (RSCAN0Busoff.Status == RSCAN0_BUS_STABLE)
// {
// RSCAN0Busoff.Status = RSCAN0_BUS_OFF_LV1;
// }
// if (RSCAN0Busoff.Status == RSCAN0_BUS_OFF_LV1)
// {
// RSCAN0Busoff.Timer++;
// if (RSCAN0Busoff.Timer >= RSCAN0_BUS_OFF_LV1_RECOVERY_TIME / deltaTime)
// {
// RSCAN0Busoff.Timer = 0U;
// RSCAN0Busoff.Cnt++;
// if (RSCAN0Busoff.Cnt >= 10U)
// {
// RSCAN0Busoff.Cnt = 0U;
// RSCAN0Busoff.Status = RSCAN0_BUS_OFF_LV2;
// }
// reset_busoff(CAN_CH_0);
// }
// }
// else if (RSCAN0Busoff.Status == RSCAN0_BUS_OFF_LV2)
// {
// RSCAN0Busoff.Timer++;
// if (RSCAN0Busoff.Timer >= RSCAN0_BUS_OFF_LV2_RECOVERY_TIME / deltaTime)
// {
// RSCAN0Busoff.Timer = 0U;
// reset_busoff(CAN_CH_0);
// }
// }
// else
// {
// }
// }
// else /* 总线正常,没有Bus-off发生*/
// {
// }
// }
// /**
// * @brief 获取busoff状态
// * @return 0 没有busoff
// * 1 错误的操作
// * 2 busoff
// */
// uint8_t Get_Busoff_Status(void)
// {
// return get_can_busoff(CAN_CH_0);
// }
// uint8_t COM_APP_Process(st_CAN_Msg *Msg)
// {
// Can_Write((st_CAN_Msg *)Msg);
// return 0;
// }
// void Can_Write(st_CAN_Msg *Msg)
// {
// uint32_t i = 0;
// CanTxRxMsg CAN_SendMsg;
// CAN_SendMsg.Id = Msg->MsgID; /* ID */
// CAN_SendMsg.DLC = Msg->MsgDLC; /* Len */
// CAN_SendMsg.RTR = Msg->MsgRTR; /* Default 0 */
// CAN_SendMsg.IDE = CAN_Id_Standard; /* Stand 0 Ext 1 */
// CAN_SendMsg.CacheType = CAN_CacheType_Tx;
// for (i = 0; i < CAN_SendMsg.DLC; i++) /* 获取数据 */
// {
// CAN_SendMsg.Data[i] = Msg->Msg[i];
// }
// switch (CAN_SendMsg.Id)
// {
// case 0x500:
// CAN_Transmit(CAN0MSG08, &CAN_SendMsg);
// break;
// default:
// break;
// }
// }
Firmware/Source/Application/Can_User.h
0 → 100644
View file @
0863b27f
// #ifndef _CAN_USER_H_
// #define _CAN_USER_H_
// #include "RTE.h"
// #include "Components.h"
// /******************************************************************************
// Bus-off
// ******************************************************************************/
// #define RSCAN0_BUS_STABLE 0x00U
// #define RSCAN0_BUS_OFF_LV1 0x01U
// #define RSCAN0_BUS_OFF_LV2 0x02U
// #define RSCAN00_BUS_LIMP 0x03U
// /******************************************************************************
// Bus-off
// ******************************************************************************/
// #define RSCAN0_BUS_OFF_LV1_RECOVERY_TIME 90U
// #define RSCAN0_BUS_OFF_LV2_RECOVERY_TIME 1000U
// typedef struct
// {
// uint8_t Status;
// uint8_t Timer;
// uint8_t Cnt;
// uint8_t ReportDTCCnt;
// } RSCAN0BusoffMonitorStruct;
// extern void Can_Tx_Apply_Buff(void);
// extern void Can_RX_Apply_Buff(void);
// extern void Can_BusOff_Recover(uint8_t deltaTime);
// extern void COM_CAN_Init(void);
// extern void Can_Init(void);
// extern void Can_Rx_Cak(CanTxRxMsg *Msg);
// extern void Busoff(void);
// extern uint8_t COM_APP_Process(st_CAN_Msg *Msg);
// extern void Can_Write(st_CAN_Msg *Msg);
// #endif
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
0863b27f
#include "Components.h"
uint8_t
Pic_mode
=
PIC_NIGHTTIME_CH
;
// 菜单背景,菜单前必带
void
AMT630H_GUI_BACKGRAND
(
void
);
// 一级菜单
void
AMT630H_GUI_Quit
(
void
);
void
AMT630H_GUI_Phone_Connect
(
void
);
void
AMT630H_GUI_Fault_Information
(
void
);
void
AMT630H_GUI_Language_Information
(
void
);
void
AMT630H_GUI_Unit_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_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_Display_Mode_Setting
(
uint8_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_Phone_Connect_Win
(
void
);
uint8_t
num_time
=
0
;
uint8_t
num_time_num1
=
0
;
uint8_t
num_time_num2
=
0
;
uint8_t
num_time_num3
=
0
;
void
AMT630H_GUI_Background
()
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
if
(
SYS_OPR_STAT_IGN_ON
)
{
AMT630H_GUI_BACKGRAND
();
// AMT630H_GUI_Phone_Connect_Win();
num_time
++
;
if
(
num_time
%
20
==
0
)
{
num_time_num2
++
;
if
(
num_time_num2
==
100
)
{
num_time_num2
=
0
;
}
}
if
(
num_time
%
50
==
0
)
{
num_time_num1
++
;
if
(
num_time_num1
==
5
)
num_time_num1
=
0
;
}
if
(
num_time
%
100
==
0
)
{
num_time
=
0
;
num_time_num3
=
~
num_time_num3
;
}
AMT630H_GUI_Clock_Setting
(
num_time_num2
,
num_time_num2
,
num_time_num1
);
}
else
{
// SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0013_0_57);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0012_0_95);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0047_264_95);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0048_610_229);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0052_44_95);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0053_49_229);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0057_376_336);
}
}
/**
* @brief 故障信息 一级菜单
* @param[in] //暂无
*/
void
AMT630H_GUI_Fault_Information
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0163_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0164_913_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0165_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0166_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0167_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0168_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0169_353_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0170_354_162
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0350_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0351_913_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0352_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0353_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0354_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0355_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0356_353_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0357_354_162
);
}
}
/**
* @brief 显示模式信息 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Backlight_Information
(
void
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0190_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0191_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0161_207_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0185_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0192_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0058_360_325
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0012_22_397
);
//Pic_0001_0_0白色主题背景
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0152_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
}
///**
// * @brief 背光信息 一级菜单
// * @param[in] null
// */
//void AMT630H_GUI_Backlight_Information(void)
//{
// SetPagePic(GRAPHICS_PAGE_0, Pic_0187_37_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0188_904_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0156_197_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0181_737_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0189_446_517);
// 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);
//}
static
uint16_t
Bluetooth_num
[]
=
{
Pic_0040_605_289
,
Pic_0041_606_290
,
Pic_0042_604_289
,
Pic_0043_604_289
,
Pic_0044_604_290
,
Pic_0045_604_290
,
Pic_0046_605_289
,
Pic_0047_605_290
,
Pic_0048_605_289
,
Pic_0049_605_289
};
/**
* @brief 蓝牙连接 一级菜单
* @param[in] sync_contacts 同步联系人
* @param[in] Connect_ON 0 关 1 开
*/
void
AMT630H_GUI_Bluetooth_Information
(
uint8_t
sync_contacts
,
uint8_t
Connect_ON
)
{
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
);
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
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141_584_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140_584_226
);
}
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_num
;
// 图片数组
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
,
ArrivalNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
DisplayNumPara
.
NumList
=
Bluetooth_num
;
// 图片数组
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
,
ArrivalNumber
);
}
}
///**
// * @brief 时间设置 一级菜单
// * @param[in] Clock_Hour 小时
// * @param[in] Clock_Min 分钟
// */
//void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min)
//{
// if (Pic_mode == PIC_DAYTIME_CH)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0179_27_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0180_903_396);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0181_197_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0173_737_485);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0182_446_517);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);
// DISPLAY_NUM_ST DisplayNumPara;
// uint8_t ArrivalNumber;
// ArrivalNumber = Clock_Hour;
// DisplayNumPara.NumList = time_num; // 图片数组
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47; // 往左排 数字间距
// DisplayNumPara.x = 574; // 最右边数字的最左上角的横坐标
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
// DisplayNumPara.DecimalNum = 0; // 小数点后位数
// DisplayNumPara.MinDigits = 2; // 最小显示位数
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ArrivalNumber);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0101_728_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0128_429_152
);
// ArrivalNumber = Clock_Min;
// DisplayNumPara.NumList = time_num; // 图片数组
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47; // 往左排 数字间距
// DisplayNumPara.x = 457; // 最右边数字的最左上角的横坐标
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
// DisplayNumPara.DecimalNum = 0; // 小数点后位数
// DisplayNumPara.MinDigits = 2; // 最小显示位数
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, ArrivalNumber);
// }
//}
/**
* @brief 单位设置 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Unit_Information
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0175_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0176_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0156_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0211_564_211
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0244_360_194
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0303_189_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0385_250_553
);
//SetPagePicFree(GRAPHICS_PAGE_0, Pic_0694_54_327, 200,327);//中间显示道路装饰线
//SetPagePic(GRAPHICS_PAGE_0, Pic_0012_0_95);//中间显示光晕
//
//SetPagePic(GRAPHICS_PAGE_0, Pic_0047_264_95);//右侧表盘
//SetPagePic(GRAPHICS_PAGE_0, Pic_0048_610_229);//右侧指针
//SetPagePic(GRAPHICS_PAGE_0, Pic_0052_44_95);//左侧表盘
//SetPagePic(GRAPHICS_PAGE_0, Pic_0053_49_229);//左侧指针
//SetPagePic(GRAPHICS_PAGE_0, Pic_0037_309_380);//功率线条
//SetPagePic(GRAPHICS_PAGE_0, Pic_0045_249_412);//power
//SetPagePic(GRAPHICS_PAGE_0, Pic_0044_454_405);//功率8km
//SetPagePic(GRAPHICS_PAGE_0, Pic_0043_313_405);//功率-3km
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
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
//SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0013_0_57);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0012_0_95);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0047_264_95);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0048_610_229);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0052_44_95);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0053_49_229);
//SetPagePic(GRAPHICS_PAGE_0, Pic_0057_376_336);
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
);
}
}
/**
* @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
);
}
}
/**
* @brief 手机互联 一级菜单
*
*/
void
AMT630H_GUI_Phone_Connect
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0158_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0159_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0160_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0161_747_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0162_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0128_429_152
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0345_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0346_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0347_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0348_747_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0349_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
}
}
/**
* @brief 退出 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Quit
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0153_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0154_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0156_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0157_461_517
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0340_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0341_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0343_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0344_461_517
);
}
}
static
uint16_t
time_num_day
[]
=
{
Pic_0022_550_211
,
Pic_0023_564_211
,
Pic_0024_550_211
,
Pic_0025_552_211
,
Pic_0026_548_211
,
Pic_0027_550_211
,
Pic_0028_551_211
,
Pic_0029_549_211
,
Pic_0030_550_211
,
Pic_0031_551_211
};
static
uint16_t
time_num_night
[]
=
{
Pic_0210_550_211
,
Pic_0211_564_211
,
Pic_0212_550_211
,
Pic_0213_552_211
,
Pic_0214_548_211
,
Pic_0215_550_211
,
Pic_0216_551_211
,
Pic_0217_549_211
,
Pic_0218_550_211
,
Pic_0219_551_211
};
/**
* @brief 时间设
置 二级菜单
* @param[in] Clock_Hour 小时
* @param[in] Clock_Min 分钟
* @param[in] Clock_BIT 选中位数 5选中返回
*/
static
void
AMT630H_GUI_Clock_Setting
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
,
uint8_t
Clock_BIT
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0135_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_338
);
switch
(
Clock_BIT
)
{
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
// 返回
break
;
default:
break
;
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
Clock_Hour
;
DisplayNumPara
.
NumList
=
time_num_day
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
455
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
ArrivalNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
time_num_day
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
572
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0323_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_338
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
switch
(
Clock_BIT
)
{
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
break
;
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
break
;
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
break
;
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0207_437_316
);
// 返回
break
;
default:
break
;
}
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
Clock_Hour
;
DisplayNumPara
.
NumList
=
time_num_night
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
455
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
ArrivalNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
time_num_night
;
// 图片数组
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// 往左排 数字间距
DisplayNumPara
.
x
=
572
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
2
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
}
/**
* @brief 显示模式设置 二级菜单
* @param[in] back_mode 显示模式 0为日间 1为夜间 2为自动
*/
void
AMT630H_GUI_Display_Mode_Setting
(
uint8_t
Display_mode
)
/*图 显示模式*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0146_27_396
);
switch
(
Display_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0149_448_101
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0152_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0150_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
break
;
default:
break
;
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0333_27_396
);
switch
(
Display_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0336_448_101
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0339_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0337_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
break
;
default:
break
;
}
}
}
/**
* @brief 背光设置 二级菜单
* @param[in] back_mode 背光模式 0为自动
*/
void
AMT630H_GUI_Backlight_Setting
(
uint8_t
back_mode
)
/*图 背光*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0144_37_396
);
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
:
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
)
{
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
;
}
}
}
static
uint16_t
Bluetooth_Connect_num_day
[]
=
{
Pic_0040_605_289
,
Pic_0041_606_290
,
Pic_0042_604_289
,
Pic_0043_604_289
,
Pic_0044_604_290
,
Pic_0045_604_290
,
Pic_0046_605_289
,
Pic_0047_605_290
,
Pic_0048_605_289
,
Pic_0049_605_289
};
static
uint16_t
Bluetooth_Connect_num_night
[]
=
{
Pic_0225_605_289
,
Pic_0226_606_290
,
Pic_0227_604_289
,
Pic_0228_604_289
,
Pic_0229_604_290
,
Pic_0230_604_290
,
Pic_0231_605_289
,
Pic_0232_605_290
,
Pic_0233_605_289
,
Pic_0234_605_289
};
/**
* @brief 蓝牙连接 二级菜单
* @param[in] select 0为选择蓝牙连接 1选择同步联系人 2选择返回
* @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
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
break
;
case
2
:
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
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0143_367_163
);
if
(
Connect_ON
==
0
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0140_584_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0141_584_226
);
}
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
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
,
ArrivalNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_583_287
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
ArrivalNumber
;
ArrivalNumber
=
sync_contacts
;
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
,
ArrivalNumber
);
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
break
;
case
2
:
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_584_226
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0327_584_226
);
}
if
(
sync_contacts
<
10
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0038_590_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
=
604
;
// 最右边数字的最左上角的横坐标
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// 小数点后位数
DisplayNumPara
.
MinDigits
=
1
;
// 最小显示位数
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ArrivalNumber
);
}
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0039_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
,
ArrivalNumber
);
}
}
}
/**
* @brief 单位设置 二级菜单
* @param[in] select 0为公制 1为英制
*/
void
AMT630H_GUI_Unit_Setting
(
uint8_t
select
)
/*图 单位设置*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
break
;
case
1
:
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
;
default:
break
;
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0318_27_396
);
switch
(
select
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0321_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0322_436_152
);
break
;
case
1
:
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
;
default:
break
;
}
}
}
/**
* @brief 语言设置 二级菜单
* @param[in] select 0为中文 1为英文
*/
void
AMT630H_GUI_Language_Setting
(
uint8_t
select
)
/*图 语言设置*/
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_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
);
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
);
break
;
default:
break
;
}
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
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_0199_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_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
);
break
;
default:
break
;
}
}
}
/**
* @brief 菜单背景
*
*/
void
AMT630H_GUI_BACKGRAND
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0315_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0194_23_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
}
}
/**
* @brief 手机互联成功 二级菜单
* @param[in] NULL
*/
void
AMT630H_GUI_Phone_Connect_Win
(
void
)
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0127_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0128_429_152
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0315_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
}
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0195_304_155
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
}
void
AMT630H_GUI_DisplayProc
(
void
)
{
SetPageGuid
(
GRAPHICS_PAGE_0
,
1
,
1
,
1
);
AMT630H_GUI_Background
();
SetPageGuid
(
GRAPHICS_PAGE_0
,
1
,
0
,
0
);
AMT630H_GUI_Background
();
PackedTransfer_Page
();
}
\ No newline at end of file
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
View file @
0863b27f
#ifndef A69FAEFD_36D2_473A_A858_C02318EB402B
#define A69FAEFD_36D2_473A_A858_C02318EB402B
typedef
enum
{
PIC_DAYTIME_CH
=
0
,
//日间中文
PIC_NIGHTTIME_CH
,
//夜间中文
PIC_DAYTIME_EN
,
//日间英文
PIC_NIGHTTIME_EN
,
//夜间英文
PIC_Max
,
}
_Picture_Mode
;
extern
void
AMT630H_GUI_DisplayProc
(
void
);
extern
void
AMT630H_GUI_Background
(
void
);
...
...
Firmware/Source/Component/AMT630H/PicBin.h
View file @
0863b27f
#ifndef PICBIN_H
#define PICBIN_H
/* Flash Bin Version:2024070
1 2024-07-01 18:53:59
Compression ratio:70.00% */
/* Flash Bin Version:2024070
8 2024-07-08 14:30:03
Compression ratio:70.00% */
#define Pic_0001 1
#define Pic_0002 2
#define Pic_0003 3
...
...
@@ -1710,7 +1710,7 @@ enum {
Pic_0751_111_30
,
Pic_0752_28_13
,
};
#define PIC_INDEX_DATA_CRC 0xB1B4E2C2
#define PIC_INDEX_DATA_CRC 0xB1B4E2C2
extern
void
User_PicIndexDataInit
(
void
);
#endif
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