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
d13d1c4a
Commit
d13d1c4a
authored
Aug 08, 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
d096fe49
26e8ccac
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1375 additions
and
832 deletions
+1375
-832
AMT630H.c
Firmware/Source/Component/AMT630H/AMT630H.c
+127
-18
AMT630H.h
Firmware/Source/Component/AMT630H/AMT630H.h
+1
-1
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+776
-534
PicBin.c
Firmware/Source/Component/AMT630H/PicBin.c
+13
-1
PicBin.h
Firmware/Source/Component/AMT630H/PicBin.h
+230
-2
Line_In_user.c
Firmware/Source/Component/Line_In/Line_In_user.c
+31
-43
Line_In_user.h
Firmware/Source/Component/Line_In/Line_In_user.h
+3
-4
Menu.h
Firmware/Source/Component/Menu/Menu.h
+15
-15
Telltales_user.c
Firmware/Source/Component/Telltales/Telltales_user.c
+179
-214
No files found.
Firmware/Source/Component/AMT630H/AMT630H.c
View file @
d13d1c4a
...
@@ -45,7 +45,116 @@ static uint16_t AMT630H_Animation_DispPic = 0;
...
@@ -45,7 +45,116 @@ static uint16_t AMT630H_Animation_DispPic = 0;
static
uint16_t
AMT630H_Animation_RefreshTime
=
0
;
static
uint16_t
AMT630H_Animation_RefreshTime
=
0
;
static
uint16_t
AMT630H_Animation_RefreshTime_default
=
0
;
static
uint16_t
AMT630H_Animation_RefreshTime_default
=
0
;
static
const
uint16_t
BootAnimationList
[
AMT630H_ANIMATION_PIC_NUM
]
=
{
static
const
uint16_t
BootAnimationList
[
AMT630H_ANIMATION_PIC_NUM
]
=
{
0
,
Pic_0860_0_0
,
Pic_0860_0_0
,
Pic_0860_0_0
,
Pic_0860_0_0
,
Pic_0859_0_0
,
Pic_0859_0_0
,
Pic_0859_0_0
,
Pic_0859_0_0
,
Pic_0858_0_0
,
Pic_0857_0_0
,
Pic_0856_0_0
,
Pic_0855_0_0
,
Pic_0854_0_0
,
Pic_0853_0_0
,
Pic_0852_0_0
,
Pic_0851_0_0
,
Pic_0850_0_0
,
Pic_0849_0_0
,
Pic_0848_0_0
,
Pic_0847_0_0
,
Pic_0846_0_0
,
Pic_0845_0_0
,
Pic_0844_0_0
,
Pic_0843_0_0
,
Pic_0842_0_0
,
Pic_0841_0_0
,
Pic_0840_0_0
,
Pic_0839_0_0
,
Pic_0838_0_0
,
Pic_0837_0_0
,
Pic_0836_0_0
,
Pic_0835_0_0
,
Pic_0834_0_0
,
Pic_0833_0_0
,
Pic_0832_0_0
,
Pic_0831_0_0
,
Pic_0830_0_0
,
Pic_0829_0_0
,
Pic_0828_0_0
,
Pic_0827_0_0
,
Pic_0826_0_0
,
Pic_0825_0_0
,
Pic_0824_0_0
,
Pic_0823_0_0
,
Pic_0822_0_0
,
Pic_0821_0_0
,
Pic_0820_0_0
,
Pic_0819_0_0
,
Pic_0818_0_0
,
Pic_0817_0_0
,
Pic_0816_0_0
,
Pic_0815_0_0
,
Pic_0814_0_0
,
Pic_0813_0_0
,
Pic_0812_0_0
,
Pic_0811_0_0
,
Pic_0810_0_0
,
Pic_0809_0_0
,
Pic_0808_0_0
,
Pic_0807_0_0
,
Pic_0806_0_0
,
Pic_0805_0_0
,
Pic_0804_0_0
,
Pic_0803_0_0
,
Pic_0802_0_0
,
Pic_0801_0_0
,
Pic_0800_0_0
,
Pic_0799_0_0
,
Pic_0798_0_0
,
Pic_0797_0_0
,
Pic_0796_0_0
,
Pic_0795_0_0
,
Pic_0794_0_0
,
Pic_0793_0_0
,
Pic_0792_0_0
,
Pic_0791_0_0
,
Pic_0790_0_0
,
Pic_0789_0_0
,
Pic_0788_0_0
,
Pic_0787_0_0
,
Pic_0786_0_0
,
Pic_0785_0_0
,
Pic_0784_0_0
,
Pic_0783_0_0
,
Pic_0782_0_0
,
Pic_0781_0_0
,
Pic_0780_0_0
,
Pic_0779_0_0
,
Pic_0778_0_0
,
Pic_0777_0_0
,
Pic_0776_0_0
,
Pic_0775_0_0
,
Pic_0774_0_0
,
Pic_0773_0_0
,
Pic_0772_0_0
,
Pic_0771_0_0
,
Pic_0770_0_0
,
Pic_0769_0_0
,
Pic_0768_0_0
,
Pic_0767_0_0
,
Pic_0766_0_0
,
Pic_0765_0_0
,
Pic_0764_0_0
,
Pic_0763_0_0
,
Pic_0762_0_0
,
Pic_0761_0_0
,
Pic_0760_0_0
,
Pic_0759_0_0
,
Pic_0758_0_0
,
Pic_0001_0_0
};
};
void
AMT630H_Animation_PlayProc
(
uint16_t
PicIndex
)
void
AMT630H_Animation_PlayProc
(
uint16_t
PicIndex
)
{
{
...
@@ -302,7 +411,7 @@ void AMT630H_Main(void)
...
@@ -302,7 +411,7 @@ void AMT630H_Main(void)
// }
// }
if
(
SYS_OPR_STAT_IGN_ON
)
if
(
SYS_OPR_STAT_IGN_ON
)
{
{
if
(
1
)
if
(
AMT630H_Animation_Finish
==
1
)
{
{
AMT630H_Animation_RefreshTime
=
0
;
AMT630H_Animation_RefreshTime
=
0
;
if
(
AMT630H_RefreshTime
>=
AMT630H_REFRESH_TIME
)
if
(
AMT630H_RefreshTime
>=
AMT630H_REFRESH_TIME
)
...
@@ -321,22 +430,22 @@ void AMT630H_Main(void)
...
@@ -321,22 +430,22 @@ void AMT630H_Main(void)
}
}
else
else
{
{
//
AMT630H_RefreshTime = 0;
AMT630H_RefreshTime
=
0
;
//
if(AMT630H_Animation_Start == 0)
if
(
AMT630H_Animation_Start
==
0
)
//
{
{
//
AMT630H_Animation_Start = 1;
AMT630H_Animation_Start
=
1
;
//
AMT630H_Animation_RefreshTime_default = AMT630H_ANIMATION_REFRESHTIME_DEF(0);
AMT630H_Animation_RefreshTime_default
=
AMT630H_ANIMATION_REFRESHTIME_DEF
(
0
);
//
}
}
//
if(AMT630H_Animation_RefreshTime >= AMT630H_Animation_RefreshTime_default)
if
(
AMT630H_Animation_RefreshTime
>=
AMT630H_Animation_RefreshTime_default
)
//
{
{
//
AMT630H_Animation_RefreshTime = 0;
AMT630H_Animation_RefreshTime
=
0
;
//
AMT630H_Animation_PlayProc(BootAnimationList[AMT630H_Animation_DispPic]);
AMT630H_Animation_PlayProc
(
BootAnimationList
[
AMT630H_Animation_DispPic
]);
//
AMT630H_Animation_DispPic++;
AMT630H_Animation_DispPic
++
;
//
if(AMT630H_Animation_DispPic >= AMT630H_ANIMATION_PIC_NUM)
if
(
AMT630H_Animation_DispPic
>=
AMT630H_ANIMATION_PIC_NUM
)
//
{
{
//
AMT630H_Animation_Finish = 1;
AMT630H_Animation_Finish
=
1
;
//
}
}
//
}
}
}
}
...
...
Firmware/Source/Component/AMT630H/AMT630H.h
View file @
d13d1c4a
...
@@ -21,7 +21,7 @@ typedef struct
...
@@ -21,7 +21,7 @@ typedef struct
#define AMT630H_REFRESH_TIME 25U
#define AMT630H_REFRESH_TIME 25U
#define AMT630H_ANIMATION_TIME 3000U //ms
#define AMT630H_ANIMATION_TIME 3000U //ms
#define AMT630H_ANIMATION_PIC_NUM 1
46
U
#define AMT630H_ANIMATION_PIC_NUM 1
10
U
#define AMT630H_ANIMATION_REFRESHTIME_DEF(x) ((AMT630H_ANIMATION_TIME > x) ? \
#define AMT630H_ANIMATION_REFRESHTIME_DEF(x) ((AMT630H_ANIMATION_TIME > x) ? \
(((AMT630H_ANIMATION_TIME - x) / AMT630H_ANIMATION_PIC_NUM) - 5) : \
(((AMT630H_ANIMATION_TIME - x) / AMT630H_ANIMATION_PIC_NUM) - 5) : \
(((AMT630H_ANIMATION_TIME) / AMT630H_ANIMATION_PIC_NUM) - 5))
(((AMT630H_ANIMATION_TIME) / AMT630H_ANIMATION_PIC_NUM) - 5))
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
d13d1c4a
...
@@ -48,40 +48,78 @@ void AMT630H_GUI_Background()
...
@@ -48,40 +48,78 @@ void AMT630H_GUI_Background()
*/
*/
void
AMT630H_GUI_Fault_Information
(
void
)
void
AMT630H_GUI_Fault_Information
(
void
)
{
{
/*日间中文*/
if
(
g_u8Display_Mode
==
ModeDAY
)
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0163_27_396
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0164_913_396
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0165_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0163_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0164_913_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0166_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0165_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0155_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0167_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0166_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0168_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0167_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0169_353_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0168_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0170_354_162
);
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
)
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0088_47_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0084_869_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0089_193_488
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0090_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0091_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0092_368_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0093_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0094_375_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0096_338_228
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0095_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0097_334_163
);
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0350_27_396
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0351_913_396
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0352_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0350_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0351_913_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0353_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0352_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0354_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0353_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0355_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0354_341_354
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0356_353_227
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0355_350_290
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0357_354_162
);
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
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0274_47_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0275_916_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0276_193_488
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0277_728_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0278_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0279_567_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0280_368_356
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0281_574_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0282_375_292
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_240
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0284_338_228
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0283_633_175
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0285_334_163
);
}
}
}
}
}
/**
/**
...
@@ -154,7 +192,7 @@ void AMT630H_GUI_Display_Mode_Information()
...
@@ -154,7 +192,7 @@ void AMT630H_GUI_Display_Mode_Information()
void
AMT630H_GUI_Backlight_Information
(
void
)
void
AMT630H_GUI_Backlight_Information
(
void
)
{
{
/*日间中文*/
/*日间中文*/
if
(
g_u8Display_Mode
=
ModeDAY
)
/*日间模式下*/
if
(
g_u8Display_Mode
=
=
ModeDAY
)
/*日间模式下*/
{
{
/*语言*/
/*语言*/
if
(
g_u8Language
==
CH
)
if
(
g_u8Language
==
CH
)
...
@@ -230,7 +268,7 @@ void AMT630H_GUI_Backlight_Information(void)
...
@@ -230,7 +268,7 @@ void AMT630H_GUI_Backlight_Information(void)
}
}
}
}
}
}
else
if
(
g_u8Display_Mode
=
ModeNIGHT
)
else
if
(
g_u8Display_Mode
=
=
ModeNIGHT
)
{
{
if
(
g_u8Language
==
CH
)
if
(
g_u8Language
==
CH
)
{
{
...
@@ -550,91 +588,27 @@ static uint16_t Time_num_night[] = {
...
@@ -550,91 +588,27 @@ static uint16_t Time_num_night[] = {
*/
*/
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
)
{
{
/*日间中文*/
DISPLAY_NUM_ST
DisplayNumPara
;
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
uint8_t
Clock_HourNumber
;
{
uint8_t
Clock_MinNumber
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0179_27_396
);
Clock_HourNumber
=
Clock_Hour
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0180_903_396
);
Clock_MinNumber
=
Clock_Min
;
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
Clock_HourNumber
;
uint8_t
Clock_MinNumber
;
Clock_HourNumber
=
Clock_Hour
;
Clock_MinNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
Time_num_day
;
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
,
Clock_HourNumber
);
DisplayNumPara
.
NumList
=
Time_num_day
;
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
,
Clock_MinNumber
);
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0366_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0367_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0368_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0360_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0369_446_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_338
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
Clock_HourNumber
;
uint8_t
Clock_MinNumber
;
Clock_HourNumber
=
Clock_Hour
;
Clock_MinNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
Time_num_night
;
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
,
Clock_HourNumber
);
DisplayNumPara
.
NumList
=
Time_num_night
;
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
,
Clock_MinNumber
);
}
/*日间英文*/
if
(
g_u8Display_Mode
==
ModeDAY
)
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0108_19_397
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0109_899_399
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0110_192_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0135_27_396
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0111_758_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_338
);
/*返回*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0112_429_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
/* : */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_341
);
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
else
if
(
g_u8Language
==
EN
)
{
DISPLAY_NUM_ST
DisplayNumPara
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0017_19_397
);
/*下方菜单*/
uint8_t
Clock_HourNumber
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_341
);
/*返回*/
uint8_t
Clock_MinNumber
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
/* : */
Clock_HourNumber
=
Clock_Hour
;
}
Clock_MinNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
Time_num_day
;
DisplayNumPara
.
NumList
=
Time_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
x
=
457
;
DisplayNumPara
.
x
=
457
;
...
@@ -651,24 +625,21 @@ void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min)
...
@@ -651,24 +625,21 @@ void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min)
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0296_19_397
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0297_899_399
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0298_192_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0323_27_396
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0299_758_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_341
);
/*返回*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0300_429_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
/* : */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_341
);
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
else
if
(
g_u8Language
==
EN
)
{
DISPLAY_NUM_ST
DisplayNumPara
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0206_19_397
);
/*下方菜单*/
uint8_t
Clock_HourNumber
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_338
);
/*返回*/
uint8_t
Clock_MinNumber
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
/* : */
Clock_HourNumber
=
Clock_Hour
;
}
Clock_MinNumber
=
Clock_Min
;
DisplayNumPara
.
NumList
=
Time_num_night
;
DisplayNumPara
.
NumList
=
Time_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
x
=
457
;
DisplayNumPara
.
x
=
457
;
...
@@ -802,48 +773,47 @@ void AMT630H_GUI_Language_Information(void)
...
@@ -802,48 +773,47 @@ void AMT630H_GUI_Language_Information(void)
*/
*/
void
AMT630H_GUI_Phone_Connect
(
void
)
void
AMT630H_GUI_Phone_Connect
(
void
)
{
{
/*日间中文*/
if
(
g_u8Display_Mode
==
ModeDAY
)
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
);
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0083_23_399
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0084_869_397
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0085_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0158_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0159_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0087_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0160_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0005_304_155
);
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
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0083_23_399
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0084_869_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0085_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0087_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0005_304_155
);
}
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0269_23_399
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0270_869_397
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0271_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0345_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0272_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0346_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0273_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0347_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0195_304_155
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0348_747_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0349_445_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0316_429_152
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0269_23_399
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0270_869_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0271_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0272_762_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0273_435_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0195_304_155
);
}
}
}
}
}
...
@@ -853,44 +823,43 @@ void AMT630H_GUI_Phone_Connect(void)
...
@@ -853,44 +823,43 @@ void AMT630H_GUI_Phone_Connect(void)
*/
*/
void
AMT630H_GUI_Quit
(
void
)
void
AMT630H_GUI_Quit
(
void
)
{
{
/*日间中文*/
if
(
g_u8Display_Mode
==
ModeDAY
)
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
);
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0078_18_397
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0079_895_397
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0080_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0153_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0081_714_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0154_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0082_481_519
);
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
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0078_18_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0079_895_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0080_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0081_714_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0082_481_519
);
}
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0264_18_397
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0265_895_397
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0266_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0340_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0267_714_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0341_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0268_481_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0342_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0343_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0344_461_517
);
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0264_18_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0265_895_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0266_188_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0267_714_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0268_481_519
);
}
}
}
}
}
...
@@ -905,7 +874,8 @@ static uint16_t time_num_day[] = {
...
@@ -905,7 +874,8 @@ static uint16_t time_num_day[] = {
Pic_0028_551_211
,
Pic_0028_551_211
,
Pic_0029_549_211
,
Pic_0029_549_211
,
Pic_0030_550_211
,
Pic_0030_550_211
,
Pic_0031_551_211
};
Pic_0031_551_211
};
static
uint16_t
time_num_night
[]
=
{
static
uint16_t
time_num_night
[]
=
{
Pic_0210_550_211
,
Pic_0210_550_211
,
Pic_0211_564_211
,
Pic_0211_564_211
,
...
@@ -916,7 +886,8 @@ static uint16_t time_num_night[] = {
...
@@ -916,7 +886,8 @@ static uint16_t time_num_night[] = {
Pic_0216_551_211
,
Pic_0216_551_211
,
Pic_0217_549_211
,
Pic_0217_549_211
,
Pic_0218_550_211
,
Pic_0218_550_211
,
Pic_0219_551_211
};
Pic_0219_551_211
};
/**
/**
* @brief 时间设
* @brief 时间设
置 二级菜单
置 二级菜单
...
@@ -926,41 +897,91 @@ static uint16_t time_num_night[] = {
...
@@ -926,41 +897,91 @@ static uint16_t time_num_night[] = {
*/
*/
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
)
{
{
if
(
g_u8Display_Mode
==
ModeDAY
)
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
/* : */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0135_27_396
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_338
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0135_27_396
);
/*下方菜单*/
switch
(
Clock_BIT
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0136_489_338
);
/*key 返回*/
{
switch
(
Clock_BIT
)
case
1
:
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
case
MENU_ITEM_CLOCK_HOUR_TENB
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
/*cursor*/
case
2
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
case
MENU_ITEM_CLOCK_HOUR_BIT
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
/*cursor*/
case
3
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
case
MENU_ITEM_CLOCK_MIN_TENB
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
/*cursor*/
case
4
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
case
MENU_ITEM_CLOCK_MIN_BIT
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
/*cursor*/
case
5
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
// 返回
case
MENU_ITEM_CLOCK_BACK
:
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
/*cursor*/
default:
break
;
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB_SET
:
/*Cursor blinking*/
/*Digital changes*/
//Sava picked data and
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT_SET
:
/*Cursor blinking*/
/*Digital changes*/
break
;
case
MENU_ITEM_CLOCK_MIN_TENB_SET
:
/*Cursor blinking*/
/*Digital changes*/
break
;
case
MENU_ITEM_CLOCK_MIN_BIT_SET
:
/*Cursor blinking*/
/*Digital changes*/
break
;
default:
break
;
}
}
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0017_19_397
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_341
);
/*return*/
switch
(
Clock_BIT
)
{
case
MENU_ITEM_CLOCK_HOUR_TENB
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_MIN_TENB
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_MIN_BIT
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_BACK
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB_SET
:
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT_SET
:
break
;
case
MENU_ITEM_CLOCK_MIN_TENB_SET
:
break
;
case
MENU_ITEM_CLOCK_MIN_BIT_SET
:
break
;
default:
break
;
}
}
}
/*display time*/
DISPLAY_NUM_ST
DisplayNumPara
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
Clock_HourNumber
;
uint8_t
Clock_HourNumber
;
uint8_t
Clock_MinNumber
;
uint8_t
Clock_MinNumber
;
Clock_HourNumber
=
Clock_Hour
;
Clock_HourNumber
=
Clock_Hour
;
Clock_MinNumber
=
Clock_Min
;
Clock_MinNumber
=
Clock_Min
;
/*Data processing*/
DisplayNumPara
.
NumList
=
time_num_day
;
DisplayNumPara
.
NumList
=
time_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
x
=
455
;
DisplayNumPara
.
x
=
455
;
...
@@ -968,7 +989,6 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
...
@@ -968,7 +989,6 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_HourNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_HourNumber
);
DisplayNumPara
.
NumList
=
time_num_day
;
DisplayNumPara
.
NumList
=
time_num_day
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
x
=
572
;
DisplayNumPara
.
x
=
572
;
...
@@ -977,40 +997,82 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
...
@@ -977,40 +997,82 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0323_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
/* : */
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_338
);
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
{
switch
(
Clock_BIT
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0323_27_396
);
/*下方菜单*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0324_489_338
);
/*return*/
case
1
:
switch
(
Clock_BIT
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
{
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB
:
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
/*cursor*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
break
;
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT
:
case
3
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
/*cursor*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
break
;
break
;
case
MENU_ITEM_CLOCK_MIN_TENB
:
case
4
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
/*cursor*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
break
;
break
;
case
MENU_ITEM_CLOCK_MIN_BIT
:
case
5
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
/*cursor*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0207_437_316
);
// 返回
break
;
break
;
case
MENU_ITEM_CLOCK_BACK
:
default:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
/*cursor*/
break
;
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB_SET
:
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT_SET
:
break
;
case
MENU_ITEM_CLOCK_MIN_TENB_SET
:
break
;
case
MENU_ITEM_CLOCK_MIN_BIT_SET
:
break
;
default:
break
;
}
}
}
/*数据处理*/
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0206_19_397
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_341
);
/*return*/
switch
(
Clock_BIT
)
{
case
MENU_ITEM_CLOCK_HOUR_TENB
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_MIN_TENB
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_MIN_BIT
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_BACK
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
/*cursor*/
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB_SET
:
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT_SET
:
break
;
case
MENU_ITEM_CLOCK_MIN_TENB_SET
:
break
;
case
MENU_ITEM_CLOCK_MIN_BIT_SET
:
break
;
default:
break
;
}
}
/*display time*/
DISPLAY_NUM_ST
DisplayNumPara
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
Clock_HourNumber
;
uint8_t
Clock_HourNumber
;
uint8_t
Clock_MinNumber
;
uint8_t
Clock_MinNumber
;
Clock_HourNumber
=
Clock_Hour
;
Clock_HourNumber
=
Clock_Hour
;
Clock_MinNumber
=
Clock_Min
;
Clock_MinNumber
=
Clock_Min
;
/*data processing*/
DisplayNumPara
.
NumList
=
time_num_night
;
DisplayNumPara
.
NumList
=
time_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
x
=
455
;
DisplayNumPara
.
x
=
455
;
...
@@ -1018,7 +1080,6 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
...
@@ -1018,7 +1080,6 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_HourNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_HourNumber
);
DisplayNumPara
.
NumList
=
time_num_night
;
DisplayNumPara
.
NumList
=
time_num_night
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
DisplayNumPara
.
x
=
572
;
DisplayNumPara
.
x
=
572
;
...
@@ -1028,111 +1089,212 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
...
@@ -1028,111 +1089,212 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
}
}
/*日间英文*/
// /*日间中文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
// if (Pic_mode == PIC_DAYTIME_CH)
{
// {
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0017_19_397
);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0021_510_222);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0019_478_341
);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0135_27_396);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0021_510_222
);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0136_489_338);
/*光标*/
// switch (Clock_BIT)
switch
(
Clock_BIT
)
// {
{
// case 1:
case
1
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209); // 小时第一位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
// break;
break
;
// case 2:
case
2
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209); // 小时第二位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
// break;
break
;
// case 3:
case
3
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209); // 分钟第一位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
// break;
break
;
// case 4:
case
4
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209); // 分钟第二位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
// break;
break
;
// case 5:
case
5
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0018_441_335); // 返回
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0018_441_335
);
// 返回
// break;
break
;
// default:
default:
// break;
break
;
// }
}
// DISPLAY_NUM_ST DisplayNumPara;
/*数据处理*/
// uint8_t Clock_HourNumber;
DISPLAY_NUM_ST
DisplayNumPara
;
// uint8_t Clock_MinNumber;
uint8_t
Clock_HourNumber
;
// Clock_HourNumber = Clock_Hour;
uint8_t
Clock_MinNumber
;
// Clock_MinNumber = Clock_Min;
Clock_HourNumber
=
Clock_Hour
;
Clock_MinNumber
=
Clock_Min
;
// DisplayNumPara.NumList = time_num_day;
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
DisplayNumPara
.
NumList
=
time_num_day
;
// DisplayNumPara.x = 455;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
DisplayNumPara
.
x
=
457
;
// DisplayNumPara.DecimalNum = 0;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
// DisplayNumPara.MinDigits = 2;
DisplayNumPara
.
DecimalNum
=
0
;
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);
DisplayNumPara
.
MinDigits
=
2
;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_HourNumber
);
// DisplayNumPara.NumList = time_num_day;
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
DisplayNumPara
.
NumList
=
time_num_day
;
// DisplayNumPara.x = 572;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
DisplayNumPara
.
x
=
574
;
// DisplayNumPara.DecimalNum = 0;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
// DisplayNumPara.MinDigits = 2;
DisplayNumPara
.
DecimalNum
=
0
;
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
DisplayNumPara
.
MinDigits
=
2
;
// }
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
}
// /*夜间中文*/
// else if (Pic_mode == PIC_NIGHTTIME_CH)
/*夜间英文*/
// {
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
// SetPagePic(GRAPHICS_PAGE_0, Pic_0323_27_396);
{
// SetPagePic(GRAPHICS_PAGE_0, Pic_0324_489_338);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0206_19_397
);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0209_510_222);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0208_478_341
);
// switch (Clock_BIT)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0209_510_222
);
// {
// case 1:
/*光标*/
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_408_209); // 小时第一位
switch
(
Clock_BIT
)
// break;
{
// case 2:
case
1
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_455_209); // 小时第二位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_408_209
);
// 小时第一位
// break;
break
;
// case 3:
case
2
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_525_209); // 分钟第一位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_455_209
);
// 小时第二位
// break;
break
;
// case 4:
case
3
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0020_572_209); // 分钟第二位
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_525_209
);
// 分钟第一位
// break;
break
;
// case 5:
case
4
:
// SetPagePic(GRAPHICS_PAGE_0, Pic_0207_437_316); // 返回
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0020_572_209
);
// 分钟第二位
// break;
break
;
// default:
case
5
:
// break;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0207_437_316
);
// 返回
// }
break
;
// /*数据处理*/
default:
// DISPLAY_NUM_ST DisplayNumPara;
break
;
// uint8_t Clock_HourNumber;
}
// uint8_t Clock_MinNumber;
// Clock_HourNumber = Clock_Hour;
/*数据处理*/
// Clock_MinNumber = Clock_Min;
DISPLAY_NUM_ST
DisplayNumPara
;
uint8_t
Clock_HourNumber
;
// DisplayNumPara.NumList = time_num_night;
uint8_t
Clock_MinNumber
;
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
Clock_HourNumber
=
Clock_Hour
;
// DisplayNumPara.x = 455;
Clock_MinNumber
=
Clock_Min
;
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
// DisplayNumPara.DecimalNum = 0;
DisplayNumPara
.
NumList
=
time_num_night
;
// DisplayNumPara.MinDigits = 2;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_HourNumber);
DisplayNumPara
.
x
=
457
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
// DisplayNumPara.NumList = time_num_night;
DisplayNumPara
.
DecimalNum
=
0
;
// DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT | 47;
DisplayNumPara
.
MinDigits
=
2
;
// DisplayNumPara.x = 572;
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_HourNumber
);
// DisplayNumPara.y = GROUP_PIC_USE_PSD_Y_POS;
// DisplayNumPara.DecimalNum = 0;
DisplayNumPara
.
NumList
=
time_num_night
;
// DisplayNumPara.MinDigits = 2;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
47
;
// DisplayNum(GRAPHICS_PAGE_0, &DisplayNumPara, Clock_MinNumber);
DisplayNumPara
.
x
=
574
;
// }
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
// /*日间英文*/
DisplayNumPara
.
MinDigits
=
2
;
// else if (Pic_mode == PIC_DAYTIME_EN)
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
Clock_MinNumber
);
// {
}
// SetPagePic(GRAPHICS_PAGE_0, Pic_0017_19_397);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0019_478_341);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0021_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_0018_441_335); // 返回
// break;
// default:
// break;
// }
// /*数据处理*/
// DISPLAY_NUM_ST DisplayNumPara;
// uint8_t Clock_HourNumber;
// uint8_t Clock_MinNumber;
// Clock_HourNumber = Clock_Hour;
// Clock_MinNumber = Clock_Min;
// DisplayNumPara.NumList = time_num_day;
// 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, Clock_HourNumber);
// DisplayNumPara.NumList = time_num_day;
// 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, Clock_MinNumber);
// }
// /*夜间英文*/
// else if (Pic_mode == PIC_NIGHTTIME_EN)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0206_19_397);
// SetPagePic(GRAPHICS_PAGE_0, Pic_0208_478_341);
// 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 Clock_HourNumber;
// uint8_t Clock_MinNumber;
// Clock_HourNumber = Clock_Hour;
// Clock_MinNumber = Clock_Min;
// DisplayNumPara.NumList = time_num_night;
// 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, Clock_HourNumber);
// DisplayNumPara.NumList = time_num_night;
// 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, Clock_MinNumber);
// }
}
}
/**
/**
...
@@ -1167,7 +1329,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1167,7 +1329,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0074_422_103
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0074_422_103
);
}
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
))
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
)
==
1
)
{
{
g_u8Display_Mode
=
ModeDAY
;
g_u8Display_Mode
=
ModeDAY
;
}
}
...
@@ -1197,7 +1359,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1197,7 +1359,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0077_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0077_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
}
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
))
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
)
==
1
)
{
{
g_u8Display_Mode
=
ModeNIGHT
;
g_u8Display_Mode
=
ModeNIGHT
;
}
}
...
@@ -1226,7 +1388,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1226,7 +1388,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
}
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
))
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
)
==
1
)
{
{
g_u8Display_Mode
=
ModeATUO
;
g_u8Display_Mode
=
ModeATUO
;
}
}
...
@@ -1264,7 +1426,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1264,7 +1426,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0260_422_103
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0260_422_103
);
}
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
))
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
)
==
1
)
{
{
g_u8Display_Mode
=
ModeDAY
;
g_u8Display_Mode
=
ModeDAY
;
}
}
...
@@ -1273,6 +1435,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1273,6 +1435,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
;
;
}
}
break
;
break
;
case
MENU_ITEM_SELECT_NIGHTTIME
:
case
MENU_ITEM_SELECT_NIGHTTIME
:
if
(
g_u8Language
==
CH
)
/*处于夜间模式 进入显示模式设置 :中文 光标选中夜间模式*/
if
(
g_u8Language
==
CH
)
/*处于夜间模式 进入显示模式设置 :中文 光标选中夜间模式*/
{
{
...
@@ -1294,7 +1457,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1294,7 +1457,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0263_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0263_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
}
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
))
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
)
==
1
)
{
{
g_u8Display_Mode
=
ModeNIGHT
;
g_u8Display_Mode
=
ModeNIGHT
;
}
}
...
@@ -1324,7 +1487,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
...
@@ -1324,7 +1487,7 @@ void AMT630H_GUI_Display_Mode_Setting(Menu_Item_en_t display_mode) /*图 显示
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
}
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
))
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
)
==
1
)
{
{
g_u8Display_Mode
=
ModeATUO
;
g_u8Display_Mode
=
ModeATUO
;
}
}
...
@@ -1661,13 +1824,13 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
...
@@ -1661,13 +1824,13 @@ void AMT630H_GUI_Bluetooth_Connect_Setting(Menu_Item_en_t select, uint8_t sync_c
switch
(
select
)
switch
(
select
)
{
{
case
0
:
case
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
/*蓝牙连接 光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_205
);
/*蓝牙连接 光标*/
break
;
break
;
case
1
:
case
MENU_ITEM_BLUETOOTH_SYNC
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
/*同步联系人 光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0036_336_266
);
/*同步联系人 光标*/
break
;
break
;
case
2
:
case
MENU_ITEM_BLUETOOTH_BACK
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
/*返回 光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0035_336_324
);
/*返回 光标*/
break
;
break
;
default:
default:
...
@@ -1915,25 +2078,25 @@ void AMT630H_GUI_Unit_Setting(Menu_Interface_en_t select) /*图 单位设置*/
...
@@ -1915,25 +2078,25 @@ void AMT630H_GUI_Unit_Setting(Menu_Interface_en_t select) /*图 单位设置*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0130_27_396
);
/*组*/
switch
(
select
)
switch
(
select
)
{
{
case
MENU_ITEM_UNIT_KM
:
case
MENU_ITEM_UNIT_KM
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_141
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0133_473_288
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0134_436_152
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_KM
)
==
1
)
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_KM
)
==
1
)
{
{
g_u8UnitSetting
=
Metric
;
g_u8UnitSetting
=
Metric
;
}
}
break
;
break
;
case
MENU_ITEM_UNIT_MILE
:
case
MENU_ITEM_UNIT_MILE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_261
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0131_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0131_435_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0132_474_168
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0132_474_168
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_MILE
)
==
1
)
if
(
Menu_Item_Select_Get
(
MENU_ITEM_UNIT_MILE
)
==
1
)
{
{
g_u8UnitSetting
=
Imperial
;
g_u8UnitSetting
=
Imperial
;
}
}
default:
default:
break
;
break
;
}
}
}
}
else
if
(
g_u8Language
==
EN
)
else
if
(
g_u8Language
==
EN
)
...
@@ -2033,15 +2196,31 @@ void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select) /*图 语言设置
...
@@ -2033,15 +2196,31 @@ void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select) /*图 语言设置
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_28_396
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0129_28_396
);
/*下方菜单*/
switch
(
select
)
switch
(
select
)
{
{
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在日间模式中文下 选择中文*/
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在日间模式中文下
光标
选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_CHINESE
)
==
1
)
{
g_u8Language
=
CH
;
}
else
{
;
}
break
;
break
;
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在日间模式中文下 选择英文*/
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在日间模式中文下
光标
选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_ENGLISH
)
==
1
)
{
g_u8Language
=
EN
;
}
else
{
;
}
break
;
break
;
default:
default:
break
;
break
;
...
@@ -2056,124 +2235,109 @@ void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select) /*图 语言设置
...
@@ -2056,124 +2235,109 @@ void AMT630H_GUI_Language_Setting(Menu_Interface_en_t select) /*图 语言设置
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0007_475_289
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0008_474_152
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_CHINESE
)
==
1
)
{
g_u8Language
=
CH
;
}
else
{
;
}
break
;
break
;
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在日间英文模式下 选择英文*/
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在日间英文模式下 选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0010_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0011_490_168
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_ENGLISH
)
==
1
)
{
g_u8Language
=
EN
;
}
else
{
;
}
break
;
break
;
default:
default:
break
;
break
;
}
}
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
{
if
(
g_u8Language
==
CH
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
/*下方菜单*/
{
switch
(
select
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
/*下方菜单*/
switch
(
select
)
{
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在夜间中文模式下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
break
;
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
);
/*下方菜单*/
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在夜间中文模式下 光标选择中文*/
switch
(
select
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在夜间中文模式下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_CHINESE
)
==
1
)
{
break
;
g_u8Language
=
CH
;
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在夜间英文模式下 选择英文*/
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
else
{
break
;
;
default:
}
break
;
break
;
}
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在夜间英文模式下 光标选择英文*/
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
)
==
1
)
{
g_u8Language
=
EN
;
}
else
{
;
}
break
;
default:
break
;
}
}
}
}
// switch (select)
else
if
(
g_u8Language
==
EN
)
// {
// 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
)
{
switch
(
select
)
{
{
case
MENU_ITEM_LANGUAGE_CHINESE
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0196_14_397
);
/*下方菜单*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0317_28_396
);
/*组*/
switch
(
select
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
case
MENU_ITEM_LANGUAGE_CHINESE
:
/*在夜间英文模式下 选择中文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
/*光标*/
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_CHINESE
))
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0199_475_289
);
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0200_474_152
);
g_u8Language
=
CH
;
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_CHINESE
)
==
1
)
}
{
else
g_u8Language
=
CH
;
{
}
;
else
}
{
break
;
;
case
MENU_ITEM_LANGUAGE_ENGLISH
:
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0196_14_397
);
/*组*/
break
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
case
MENU_ITEM_LANGUAGE_ENGLISH
:
/*在夜间英文模式下 选择英文*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0197_448_274
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0009_321_261
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0198_490_168
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0197_448_274
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_ENGLISH
))
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0198_490_168
);
{
if
(
Menu_Item_Select_Get
(
MENU_ITEM_LANGUAGE_ENGLISH
)
==
1
)
g_u8Language
=
EN
;
{
}
g_u8Language
=
EN
;
else
}
{
else
;
{
}
;
break
;
}
default:
break
;
break
;
default:
break
;
}
}
}
}
}
}
}
/**
/**
* @brief 手机互联成功 二级菜单
* @brief 手机互联成功 二级菜单
...
@@ -2742,44 +2906,107 @@ static void AMT630H_GUI_ODO(uint32_t ODO, uint8_t mode)
...
@@ -2742,44 +2906,107 @@ static void AMT630H_GUI_ODO(uint32_t ODO, uint8_t mode)
{
{
if
(
g_u8Display_Mode
==
ModeDAY
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
{
/*ODO位数不同 KM位置不同*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0577_48_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0577_48_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0578_55_296
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0578_55_296
);
/*ODO图标不动*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_211_324
);
DISPLAY_NUM_ST
DisplayNumPara
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
ODONumber
;
uint16_t
ODONumber
;
ODONumber
=
ODO
;
ODONumber
=
ODO
;
DisplayNumPara
.
NumList
=
NumbeList_ODO_DAY
;
DisplayNumPara
.
NumList
=
NumbeList_ODO_DAY
;
DisplayNumPara
.
x
=
173
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
6
;
if
((
ODONumber
<
1000000
)
&&
(
ODONumber
>=
100000
))
{
DisplayNumPara
.
x
=
173
;
DisplayNumPara
.
MinDigits
=
6
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_211_324
);
/*KM*/
}
else
if
((
ODONumber
<
100000
)
&&
(
ODONumber
>=
10000
))
{
DisplayNumPara
.
x
=
149
;
DisplayNumPara
.
MinDigits
=
5
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_187_324
);
/*KM*/
}
else
if
((
ODONumber
<
10000
)
&&
(
ODONumber
>=
1000
))
{
DisplayNumPara
.
x
=
125
;
DisplayNumPara
.
MinDigits
=
4
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_163_324
);
/*KM*/
}
else
if
((
ODONumber
<
1000
)
&&
(
ODONumber
>=
100
))
{
DisplayNumPara
.
x
=
101
;
DisplayNumPara
.
MinDigits
=
3
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_139_324
);
/*KM*/
}
else
if
((
ODONumber
<
100
)
&&
(
ODONumber
>=
10
))
{
DisplayNumPara
.
x
=
77
;
DisplayNumPara
.
MinDigits
=
2
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_115_324
);
/*KM*/
}
else
if
((
ODONumber
<
10
)
&&
(
ODONumber
>=
0
))
{
DisplayNumPara
.
x
=
53
;
DisplayNumPara
.
MinDigits
=
1
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0580_91_324
);
/*KM*/
}
else
{
;
}
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
{
/*ODO位数不同 KM位置不同*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0685_48_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0685_48_272
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0686_55_296
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0686_55_296
);
/*ODO图标不动*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_211_324
);
DISPLAY_NUM_ST
DisplayNumPara
;
DISPLAY_NUM_ST
DisplayNumPara
;
uint16_t
ODONumber
;
uint16_t
ODONumber
;
ODONumber
=
ODO
;
ODONumber
=
ODO
;
DisplayNumPara
.
NumList
=
NumbeList_ODO_NIGHT
;
DisplayNumPara
.
NumList
=
NumbeList_ODO_NIGHT
;
DisplayNumPara
.
x
=
173
;
DisplayNumPara
.
x
=
173
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
24
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
y
=
GROUP_PIC_USE_PSD_Y_POS
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
DecimalNum
=
0
;
DisplayNumPara
.
MinDigits
=
6
;
if
((
ODONumber
<
1000000
)
&&
(
ODONumber
>=
100000
))
{
DisplayNumPara
.
MinDigits
=
6
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_211_324
);
/*KM*/
}
else
if
((
ODONumber
<
100000
)
&&
(
ODONumber
>=
10000
))
{
DisplayNumPara
.
MinDigits
=
5
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_187_324
);
/*KM*/
}
else
if
((
ODONumber
<
10000
)
&&
(
ODONumber
>=
1000
))
{
DisplayNumPara
.
MinDigits
=
4
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_163_324
);
/*KM*/
}
else
if
((
ODONumber
<
1000
)
&&
(
ODONumber
>=
100
))
{
DisplayNumPara
.
MinDigits
=
3
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_139_324
);
/*KM*/
}
else
if
((
ODONumber
<
100
)
&&
(
ODONumber
>=
10
))
{
DisplayNumPara
.
MinDigits
=
2
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_115_324
);
/*KM*/
}
else
if
((
ODONumber
<
10
)
&&
(
ODONumber
>=
0
))
{
DisplayNumPara
.
MinDigits
=
1
;
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0688_91_324
);
/*KM*/
}
else
{
;
}
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
ODONumber
);
}
}
else
else
{
{
;
;
...
@@ -3019,7 +3246,7 @@ void AMT630H_GUI_BACKGRAND()
...
@@ -3019,7 +3246,7 @@ void AMT630H_GUI_BACKGRAND()
}
}
/*主界面函数*/
/*主界面函数*/
AMT630H_GUI_Light
();
AMT630H_GUI_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
AMT630H_GUI_TIME
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
());
/* AMT630H_GUI_Telephone(Telephone); */
/* AMT630H_GUI_Telephone(Telephone); */
if
(
Get_Fuel_Sensor_State
()
==
FuelSensorNormal
)
if
(
Get_Fuel_Sensor_State
()
==
FuelSensorNormal
)
...
@@ -3057,15 +3284,15 @@ void AMT630H_GUI_SETTING()
...
@@ -3057,15 +3284,15 @@ void AMT630H_GUI_SETTING()
{
{
if
(
g_u8Language
==
CH
)
if
(
g_u8Language
==
CH
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
/*修改为PNG格式*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
}
else
if
(
g_u8Language
==
EN
)
else
if
(
g_u8Language
==
EN
)
{
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
}
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
...
@@ -3101,7 +3328,6 @@ void AMT630H_GUI_ReadPosittion_Display(void)
...
@@ -3101,7 +3328,6 @@ void AMT630H_GUI_ReadPosittion_Display(void)
{
{
case
MENU_ITEM_MAIN_ITEM
:
/*主界面*/
case
MENU_ITEM_MAIN_ITEM
:
/*主界面*/
AMT630H_GUI_BACKGRAND
();
AMT630H_GUI_BACKGRAND
();
AMT630H_GUI_Light
();
/*主界面*/
break
;
break
;
case
MENU_ITEM_DISPLAY_MODE
:
/*01 显示模式*/
case
MENU_ITEM_DISPLAY_MODE
:
/*01 显示模式*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
...
@@ -3154,15 +3380,15 @@ void AMT630H_GUI_ReadPosittion_Display(void)
...
@@ -3154,15 +3380,15 @@ void AMT630H_GUI_ReadPosittion_Display(void)
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
(
0
,
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
8
,
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
(
1
,
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_SYNC
,
8
,
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
(
2
,
8
,
Get_Dis_Bluetooth_Open_Close
());
/*蓝牙开关和联系人接口没给*/
AMT630H_GUI_Bluetooth_Connect_Setting
(
MENU_ITEM_BLUETOOTH_BACK
,
8
,
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
();
...
@@ -3170,33 +3396,49 @@ void AMT630H_GUI_ReadPosittion_Display(void)
...
@@ -3170,33 +3396,49 @@ void AMT630H_GUI_ReadPosittion_Display(void)
break
;
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB
:
/*20 时钟小时十位*/
case
MENU_ITEM_CLOCK_HOUR_TENB
:
/*20 时钟小时十位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
1
);
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_HOUR_TENB
);
break
;
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT
:
/*19 时钟小时个位*/
case
MENU_ITEM_CLOCK_HOUR_BIT
:
/*19 时钟小时个位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
2
);
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_HOUR_BIT
);
break
;
break
;
case
MENU_ITEM_CLOCK_MIN_TENB
:
/*18 时钟分钟十位*/
case
MENU_ITEM_CLOCK_MIN_TENB
:
/*18 时钟分钟十位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
3
);
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_MIN_TENB
);
break
;
break
;
case
MENU_ITEM_CLOCK_MIN_BIT
:
/*17 时钟分钟个位*/
case
MENU_ITEM_CLOCK_MIN_BIT
:
/*17 时钟分钟个位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
4
);
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_MIN_BIT
);
break
;
break
;
case
MENU_ITEM_CLOCK_BACK
:
/*16 时钟返回*/
case
MENU_ITEM_CLOCK_BACK
:
/*16 时钟返回*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
5
);
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_BACK
);
break
;
case
MENU_ITEM_CLOCK_HOUR_TENB_SET
:
/*27 时钟小时十位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_HOUR_TENB_SET
);
break
;
case
MENU_ITEM_CLOCK_HOUR_BIT_SET
:
/*28 时钟小时个位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_HOUR_BIT_SET
);
break
;
case
MENU_ITEM_CLOCK_MIN_TENB_SET
:
/*29 时钟分钟十位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_MIN_TENB_SET
);
break
;
case
MENU_ITEM_CLOCK_MIN_BIT_SET
:
/*30 时钟分钟个位*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Clock_Setting
(
Get_Dis_Hour_Time
(),
Get_Dis_Minute_Time
(),
MENU_ITEM_CLOCK_MIN_BIT_SET
);
break
;
break
;
case
MENU_ITEM_UNIT_SETTING
:
/*
21
单位设置*/
case
MENU_ITEM_UNIT_SETTING
:
/*
05
单位设置*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Unit_Information
();
AMT630H_GUI_Unit_Information
();
break
;
break
;
case
MENU_ITEM_UNIT_KM
:
/*
22
选中公制*/
case
MENU_ITEM_UNIT_KM
:
/*
31
选中公制*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Unit_Setting
(
MENU_ITEM_UNIT_KM
);
AMT630H_GUI_Unit_Setting
(
MENU_ITEM_UNIT_KM
);
break
;
break
;
case
MENU_ITEM_UNIT_MILE
:
/*
23
选中英制*/
case
MENU_ITEM_UNIT_MILE
:
/*
32
选中英制*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_SETTING
();
AMT630H_GUI_Unit_Setting
(
MENU_ITEM_UNIT_MILE
);
AMT630H_GUI_Unit_Setting
(
MENU_ITEM_UNIT_MILE
);
break
;
break
;
...
...
Firmware/Source/Component/AMT630H/PicBin.c
View file @
d13d1c4a
...
@@ -96,7 +96,19 @@ static const uint16_t PicIndexData[] = {
...
@@ -96,7 +96,19 @@ static const uint16_t PicIndexData[] = {
Pic_0722
,
423
,
94
,
114
,
Pic_0723
,
85
,
379
,
149
,
Pic_0724
,
119
,
292
,
128
,
Pic_0725
,
165
,
191
,
110
,
Pic_0726
,
198
,
138
,
111
,
Pic_0727
,
153
,
94
,
123
,
Pic_0728
,
20
,
56
,
165
,
Pic_0729
,
7
,
118
,
95
,
Pic_0730
,
19
,
178
,
81
,
Pic_0731
,
18
,
268
,
89
,
Pic_0722
,
423
,
94
,
114
,
Pic_0723
,
85
,
379
,
149
,
Pic_0724
,
119
,
292
,
128
,
Pic_0725
,
165
,
191
,
110
,
Pic_0726
,
198
,
138
,
111
,
Pic_0727
,
153
,
94
,
123
,
Pic_0728
,
20
,
56
,
165
,
Pic_0729
,
7
,
118
,
95
,
Pic_0730
,
19
,
178
,
81
,
Pic_0731
,
18
,
268
,
89
,
Pic_0732
,
21
,
350
,
114
,
Pic_0733
,
19
,
422
,
114
,
Pic_0734
,
18
,
498
,
114
,
Pic_0735
,
21
,
570
,
114
,
Pic_0736
,
56
,
941
,
13
,
Pic_0737
,
44
,
875
,
23
,
Pic_0738
,
61
,
792
,
25
,
Pic_0739
,
39
,
731
,
19
,
Pic_0740
,
28
,
682
,
21
,
Pic_0741
,
44
,
616
,
20
,
Pic_0732
,
21
,
350
,
114
,
Pic_0733
,
19
,
422
,
114
,
Pic_0734
,
18
,
498
,
114
,
Pic_0735
,
21
,
570
,
114
,
Pic_0736
,
56
,
941
,
13
,
Pic_0737
,
44
,
875
,
23
,
Pic_0738
,
61
,
792
,
25
,
Pic_0739
,
39
,
731
,
19
,
Pic_0740
,
28
,
682
,
21
,
Pic_0741
,
44
,
616
,
20
,
Pic_0742
,
50
,
544
,
22
,
Pic_0743
,
47
,
476
,
20
,
Pic_0744
,
53
,
402
,
21
,
Pic_0745
,
39
,
341
,
21
,
Pic_0746
,
86
,
233
,
26
,
Pic_0747
,
64
,
244
,
26
,
Pic_0748
,
16
,
194
,
26
,
Pic_0749
,
19
,
192
,
26
,
Pic_0750
,
65
,
106
,
26
,
Pic_0751
,
56
,
111
,
30
,
Pic_0742
,
50
,
544
,
22
,
Pic_0743
,
47
,
476
,
20
,
Pic_0744
,
53
,
402
,
21
,
Pic_0745
,
39
,
341
,
21
,
Pic_0746
,
86
,
233
,
26
,
Pic_0747
,
64
,
244
,
26
,
Pic_0748
,
16
,
194
,
26
,
Pic_0749
,
19
,
192
,
26
,
Pic_0750
,
65
,
106
,
26
,
Pic_0751
,
56
,
111
,
30
,
Pic_0752
,
56
,
28
,
13
,
Pic_0753
,
809
,
109
,
331
,
Pic_0754
,
809
,
109
,
347
,
Pic_0755
,
1024
,
0
,
0
,
Pic_0756
,
1024
,
0
,
0
,
Pic_0757
,
1024
,
0
,
0
,
Pic_0752
,
56
,
28
,
13
,
Pic_0753
,
809
,
109
,
331
,
Pic_0754
,
809
,
109
,
347
,
Pic_0755
,
1024
,
0
,
0
,
Pic_0756
,
1024
,
0
,
0
,
Pic_0757
,
1024
,
0
,
0
,
Pic_0758
,
1024
,
0
,
0
,
Pic_0759
,
1024
,
0
,
0
,
Pic_0760
,
1024
,
0
,
0
,
Pic_0761
,
1024
,
0
,
0
,
Pic_0762
,
1024
,
0
,
0
,
Pic_0763
,
1024
,
0
,
0
,
Pic_0764
,
1024
,
0
,
0
,
Pic_0765
,
1024
,
0
,
0
,
Pic_0766
,
1024
,
0
,
0
,
Pic_0767
,
1024
,
0
,
0
,
Pic_0768
,
1024
,
0
,
0
,
Pic_0769
,
1024
,
0
,
0
,
Pic_0770
,
1024
,
0
,
0
,
Pic_0771
,
1024
,
0
,
0
,
Pic_0772
,
1024
,
0
,
0
,
Pic_0773
,
1024
,
0
,
0
,
Pic_0774
,
1024
,
0
,
0
,
Pic_0775
,
1024
,
0
,
0
,
Pic_0776
,
1024
,
0
,
0
,
Pic_0777
,
1024
,
0
,
0
,
Pic_0778
,
1024
,
0
,
0
,
Pic_0779
,
1024
,
0
,
0
,
Pic_0780
,
1024
,
0
,
0
,
Pic_0781
,
1024
,
0
,
0
,
Pic_0782
,
1024
,
0
,
0
,
Pic_0783
,
1024
,
0
,
0
,
Pic_0784
,
1024
,
0
,
0
,
Pic_0785
,
1024
,
0
,
0
,
Pic_0786
,
1024
,
0
,
0
,
Pic_0787
,
1024
,
0
,
0
,
Pic_0788
,
1024
,
0
,
0
,
Pic_0789
,
1024
,
0
,
0
,
Pic_0790
,
1024
,
0
,
0
,
Pic_0791
,
1024
,
0
,
0
,
Pic_0792
,
1024
,
0
,
0
,
Pic_0793
,
1024
,
0
,
0
,
Pic_0794
,
1024
,
0
,
0
,
Pic_0795
,
1024
,
0
,
0
,
Pic_0796
,
1024
,
0
,
0
,
Pic_0797
,
1024
,
0
,
0
,
Pic_0798
,
1024
,
0
,
0
,
Pic_0799
,
1024
,
0
,
0
,
Pic_0800
,
1024
,
0
,
0
,
Pic_0801
,
1024
,
0
,
0
,
Pic_0802
,
1024
,
0
,
0
,
Pic_0803
,
1024
,
0
,
0
,
Pic_0804
,
1024
,
0
,
0
,
Pic_0805
,
1024
,
0
,
0
,
Pic_0806
,
1024
,
0
,
0
,
Pic_0807
,
1024
,
0
,
0
,
Pic_0808
,
1024
,
0
,
0
,
Pic_0809
,
1024
,
0
,
0
,
Pic_0810
,
1024
,
0
,
0
,
Pic_0811
,
1024
,
0
,
0
,
Pic_0812
,
1024
,
0
,
0
,
Pic_0813
,
1024
,
0
,
0
,
Pic_0814
,
1024
,
0
,
0
,
Pic_0815
,
1024
,
0
,
0
,
Pic_0816
,
1024
,
0
,
0
,
Pic_0817
,
1024
,
0
,
0
,
Pic_0818
,
1024
,
0
,
0
,
Pic_0819
,
1024
,
0
,
0
,
Pic_0820
,
1024
,
0
,
0
,
Pic_0821
,
1024
,
0
,
0
,
Pic_0822
,
1024
,
0
,
0
,
Pic_0823
,
1024
,
0
,
0
,
Pic_0824
,
1024
,
0
,
0
,
Pic_0825
,
1024
,
0
,
0
,
Pic_0826
,
1024
,
0
,
0
,
Pic_0827
,
1024
,
0
,
0
,
Pic_0828
,
1024
,
0
,
0
,
Pic_0829
,
1024
,
0
,
0
,
Pic_0830
,
1024
,
0
,
0
,
Pic_0831
,
1024
,
0
,
0
,
Pic_0832
,
1024
,
0
,
0
,
Pic_0833
,
1024
,
0
,
0
,
Pic_0834
,
1024
,
0
,
0
,
Pic_0835
,
1024
,
0
,
0
,
Pic_0836
,
1024
,
0
,
0
,
Pic_0837
,
1024
,
0
,
0
,
Pic_0838
,
1024
,
0
,
0
,
Pic_0839
,
1024
,
0
,
0
,
Pic_0840
,
1024
,
0
,
0
,
Pic_0841
,
1024
,
0
,
0
,
Pic_0842
,
1024
,
0
,
0
,
Pic_0843
,
1024
,
0
,
0
,
Pic_0844
,
1024
,
0
,
0
,
Pic_0845
,
1024
,
0
,
0
,
Pic_0846
,
1024
,
0
,
0
,
Pic_0847
,
1024
,
0
,
0
,
Pic_0848
,
1024
,
0
,
0
,
Pic_0849
,
1024
,
0
,
0
,
Pic_0850
,
1024
,
0
,
0
,
Pic_0851
,
1024
,
0
,
0
,
Pic_0852
,
1024
,
0
,
0
,
Pic_0853
,
1024
,
0
,
0
,
Pic_0854
,
1024
,
0
,
0
,
Pic_0855
,
1024
,
0
,
0
,
Pic_0856
,
1024
,
0
,
0
,
Pic_0857
,
1024
,
0
,
0
,
Pic_0858
,
1024
,
0
,
0
,
Pic_0859
,
1024
,
0
,
0
,
Pic_0860
,
1024
,
0
,
0
,
Pic_0861
,
73
,
211
,
324
,
Pic_0861
,
73
,
187
,
324
,
Pic_0861
,
73
,
163
,
324
,
Pic_0861
,
73
,
139
,
324
,
Pic_0861
,
73
,
115
,
324
,
Pic_0861
,
73
,
91
,
324
,
Pic_0862
,
53
,
54
,
297
,
Pic_0863
,
73
,
211
,
324
,
Pic_0863
,
73
,
187
,
324
,
Pic_0863
,
73
,
163
,
324
,
Pic_0863
,
73
,
139
,
324
,
Pic_0863
,
73
,
115
,
324
,
Pic_0863
,
73
,
91
,
324
,
Pic_0864
,
53
,
54
,
297
,
};
};
#define PicIndexData_LEN 14888
#define PicIndexData_LEN 14888
//uint32_t PicIndexDataLEN = 0;
//uint32_t PicIndexDataLEN = 0;
...
...
Firmware/Source/Component/AMT630H/PicBin.h
View file @
d13d1c4a
#ifndef PICBIN_H
#ifndef PICBIN_H
#define PICBIN_H
#define PICBIN_H
/* Flash Bin Version:20240
729 2024-07-29 10:18:50
Compression ratio:70.00% */
/* Flash Bin Version:20240
806 2024-08-06 14:50:45
Compression ratio:70.00% */
#define Pic_0001 1
#define Pic_0001 1
#define Pic_0002 2
#define Pic_0002 2
#define Pic_0003 3
#define Pic_0003 3
...
@@ -759,6 +759,113 @@
...
@@ -759,6 +759,113 @@
#define Pic_0755 755
#define Pic_0755 755
#define Pic_0756 756
#define Pic_0756 756
#define Pic_0757 757
#define Pic_0757 757
#define Pic_0758 758
#define Pic_0759 759
#define Pic_0760 760
#define Pic_0761 761
#define Pic_0762 762
#define Pic_0763 763
#define Pic_0764 764
#define Pic_0765 765
#define Pic_0766 766
#define Pic_0767 767
#define Pic_0768 768
#define Pic_0769 769
#define Pic_0770 770
#define Pic_0771 771
#define Pic_0772 772
#define Pic_0773 773
#define Pic_0774 774
#define Pic_0775 775
#define Pic_0776 776
#define Pic_0777 777
#define Pic_0778 778
#define Pic_0779 779
#define Pic_0780 780
#define Pic_0781 781
#define Pic_0782 782
#define Pic_0783 783
#define Pic_0784 784
#define Pic_0785 785
#define Pic_0786 786
#define Pic_0787 787
#define Pic_0788 788
#define Pic_0789 789
#define Pic_0790 790
#define Pic_0791 791
#define Pic_0792 792
#define Pic_0793 793
#define Pic_0794 794
#define Pic_0795 795
#define Pic_0796 796
#define Pic_0797 797
#define Pic_0798 798
#define Pic_0799 799
#define Pic_0800 800
#define Pic_0801 801
#define Pic_0802 802
#define Pic_0803 803
#define Pic_0804 804
#define Pic_0805 805
#define Pic_0806 806
#define Pic_0807 807
#define Pic_0808 808
#define Pic_0809 809
#define Pic_0810 810
#define Pic_0811 811
#define Pic_0812 812
#define Pic_0813 813
#define Pic_0814 814
#define Pic_0815 815
#define Pic_0816 816
#define Pic_0817 817
#define Pic_0818 818
#define Pic_0819 819
#define Pic_0820 820
#define Pic_0821 821
#define Pic_0822 822
#define Pic_0823 823
#define Pic_0824 824
#define Pic_0825 825
#define Pic_0826 826
#define Pic_0827 827
#define Pic_0828 828
#define Pic_0829 829
#define Pic_0830 830
#define Pic_0831 831
#define Pic_0832 832
#define Pic_0833 833
#define Pic_0834 834
#define Pic_0835 835
#define Pic_0836 836
#define Pic_0837 837
#define Pic_0838 838
#define Pic_0839 839
#define Pic_0840 840
#define Pic_0841 841
#define Pic_0842 842
#define Pic_0843 843
#define Pic_0844 844
#define Pic_0845 845
#define Pic_0846 846
#define Pic_0847 847
#define Pic_0848 848
#define Pic_0849 849
#define Pic_0850 850
#define Pic_0851 851
#define Pic_0852 852
#define Pic_0853 853
#define Pic_0854 854
#define Pic_0855 855
#define Pic_0856 856
#define Pic_0857 857
#define Pic_0858 858
#define Pic_0859 859
#define Pic_0860 860
#define Pic_0861 861
#define Pic_0862 862
#define Pic_0863 863
#define Pic_0864 864
enum
{
enum
{
Pic_0001_0_0
=
0
,
Pic_0001_0_0
=
0
,
...
@@ -1719,8 +1826,129 @@ enum {
...
@@ -1719,8 +1826,129 @@ enum {
Pic_0755_0_0
,
Pic_0755_0_0
,
Pic_0756_0_0
,
Pic_0756_0_0
,
Pic_0757_0_0
,
Pic_0757_0_0
,
Pic_0758_0_0
,
Pic_0759_0_0
,
Pic_0760_0_0
,
Pic_0761_0_0
,
Pic_0762_0_0
,
Pic_0763_0_0
,
Pic_0764_0_0
,
Pic_0765_0_0
,
Pic_0766_0_0
,
Pic_0767_0_0
,
Pic_0768_0_0
,
Pic_0769_0_0
,
Pic_0770_0_0
,
Pic_0771_0_0
,
Pic_0772_0_0
,
Pic_0773_0_0
,
Pic_0774_0_0
,
Pic_0775_0_0
,
Pic_0776_0_0
,
Pic_0777_0_0
,
Pic_0778_0_0
,
Pic_0779_0_0
,
Pic_0780_0_0
,
Pic_0781_0_0
,
Pic_0782_0_0
,
Pic_0783_0_0
,
Pic_0784_0_0
,
Pic_0785_0_0
,
Pic_0786_0_0
,
Pic_0787_0_0
,
Pic_0788_0_0
,
Pic_0789_0_0
,
Pic_0790_0_0
,
Pic_0791_0_0
,
Pic_0792_0_0
,
Pic_0793_0_0
,
Pic_0794_0_0
,
Pic_0795_0_0
,
Pic_0796_0_0
,
Pic_0797_0_0
,
Pic_0798_0_0
,
Pic_0799_0_0
,
Pic_0800_0_0
,
Pic_0801_0_0
,
Pic_0802_0_0
,
Pic_0803_0_0
,
Pic_0804_0_0
,
Pic_0805_0_0
,
Pic_0806_0_0
,
Pic_0807_0_0
,
Pic_0808_0_0
,
Pic_0809_0_0
,
Pic_0810_0_0
,
Pic_0811_0_0
,
};
};
#define PIC_INDEX_DATA_CRC 0x6A630F71
enum
{
Pic_0812_0_0
=
1000
,
Pic_0813_0_0
,
Pic_0814_0_0
,
Pic_0815_0_0
,
Pic_0816_0_0
,
Pic_0817_0_0
,
Pic_0818_0_0
,
Pic_0819_0_0
,
Pic_0820_0_0
,
Pic_0821_0_0
,
Pic_0822_0_0
,
Pic_0823_0_0
,
Pic_0824_0_0
,
Pic_0825_0_0
,
Pic_0826_0_0
,
Pic_0827_0_0
,
Pic_0828_0_0
,
Pic_0829_0_0
,
Pic_0830_0_0
,
Pic_0831_0_0
,
Pic_0832_0_0
,
Pic_0833_0_0
,
Pic_0834_0_0
,
Pic_0835_0_0
,
Pic_0836_0_0
,
Pic_0837_0_0
,
Pic_0838_0_0
,
Pic_0839_0_0
,
Pic_0840_0_0
,
Pic_0841_0_0
,
Pic_0842_0_0
,
Pic_0843_0_0
,
Pic_0844_0_0
,
Pic_0845_0_0
,
Pic_0846_0_0
,
Pic_0847_0_0
,
Pic_0848_0_0
,
Pic_0849_0_0
,
Pic_0850_0_0
,
Pic_0851_0_0
,
Pic_0852_0_0
,
Pic_0853_0_0
,
Pic_0854_0_0
,
Pic_0855_0_0
,
Pic_0856_0_0
,
Pic_0857_0_0
,
Pic_0858_0_0
,
Pic_0859_0_0
,
Pic_0860_0_0
,
Pic_0861_211_324
,
Pic_0861_187_324
,
Pic_0861_163_324
,
Pic_0861_139_324
,
Pic_0861_115_324
,
Pic_0861_91_324
,
Pic_0862_54_297
,
Pic_0863_211_324
,
Pic_0863_187_324
,
Pic_0863_163_324
,
Pic_0863_139_324
,
Pic_0863_115_324
,
Pic_0863_91_324
,
Pic_0864_54_297
,
};
#define PIC_INDEX_DATA_CRC 0xD98F6E13
extern
void
User_PicIndexDataInit
(
void
);
extern
void
User_PicIndexDataInit
(
void
);
#endif
#endif
Firmware/Source/Component/Line_In/Line_In_user.c
View file @
d13d1c4a
...
@@ -8,14 +8,13 @@ const Line_In_Attribute_st g_stLineInAttribute[LINE_IN_MAX] =
...
@@ -8,14 +8,13 @@ const Line_In_Attribute_st g_stLineInAttribute[LINE_IN_MAX] =
{
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_Left
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Turn_Right
,
},
{
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_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_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_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_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_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_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_Fuel_Level_Low
,
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_E
,
},
{
LEVEL_LOW
,
LEVEL_HIGH
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_Coolant_Temperature
},
{
LEVEL_HIGH
,
LEVEL_LOW
,
LINE_IN_IG_ON
,
20U
,
20U
,
Get_LINE_IN_S
,
},
};
};
Linelib_uint8_t
Get_LINE_IN_Turn_Left
(
void
)
Linelib_uint8_t
Get_LINE_IN_Turn_Left
(
void
)
{
{
...
@@ -46,7 +45,7 @@ Linelib_uint8_t Get_LINE_IN_Turn_Right(void)
...
@@ -46,7 +45,7 @@ Linelib_uint8_t Get_LINE_IN_Turn_Right(void)
Linelib_uint8_t
Get_LINE_IN_High_Beam
(
void
)
Linelib_uint8_t
Get_LINE_IN_High_Beam
(
void
)
{
{
Linelib_uint8_t
ret
=
0U
;
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
HighBeam_
P_In
))
if
(
RTE_GPIO_Get_Level
(
HighBeam_
MCU
))
{
{
ret
=
1u
;
ret
=
1u
;
}
}
...
@@ -85,7 +84,7 @@ Linelib_uint8_t Get_LINE_IN_ABS(void)
...
@@ -85,7 +84,7 @@ Linelib_uint8_t Get_LINE_IN_ABS(void)
Linelib_uint8_t
Get_LINE_IN_Auto_Start_Stop
(
void
)
Linelib_uint8_t
Get_LINE_IN_Auto_Start_Stop
(
void
)
{
{
Linelib_uint8_t
ret
=
0U
;
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
Start_stop_MCU
))
{
{
ret
=
1u
;
ret
=
1u
;
}
}
...
@@ -98,7 +97,7 @@ Linelib_uint8_t Get_LINE_IN_Auto_Start_Stop(void)
...
@@ -98,7 +97,7 @@ Linelib_uint8_t Get_LINE_IN_Auto_Start_Stop(void)
Linelib_uint8_t
Get_LINE_IN_Oil_Pressure_Alert
(
void
)
Linelib_uint8_t
Get_LINE_IN_Oil_Pressure_Alert
(
void
)
{
{
Linelib_uint8_t
ret
=
0U
;
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
Gears_N_MCU
))
{
{
ret
=
1u
;
ret
=
1u
;
}
}
...
@@ -110,47 +109,34 @@ Linelib_uint8_t Get_LINE_IN_Oil_Pressure_Alert(void)
...
@@ -110,47 +109,34 @@ Linelib_uint8_t Get_LINE_IN_Oil_Pressure_Alert(void)
}
}
Linelib_uint8_t
Get_LINE_IN_Voltage
(
void
)
Linelib_uint8_t
Get_LINE_IN_Voltage
(
void
)
{
{
Linelib_uint8_t
ret
=
0U
;
//
Linelib_uint8_t ret = 0U;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
// if (RTE_GPIO_Get_Level(LeftTurn_MUC_OUT))/*没找到电压指示灯*/
{
//
{
ret
=
1u
;
//
ret = 1u;
}
//
}
else
//
else
{
//
{
ret
=
0UL
;
//
ret = 0UL;
}
//
}
return
ret
;
//
return ret;
}
}
Linelib_uint8_t
Get_LINE_IN_Fuel_Level_Low
(
void
)
Linelib_uint8_t
Get_LINE_IN_Fuel_Level_Low
(
void
)
{
{
Linelib_uint8_t
ret
=
0U
;
// Linelib_uint8_t ret = 0U;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
// if (RTE_GPIO_Get_Level(LeftTurn_MUC_OUT))/*修改指示灯*/
{
// {
ret
=
1u
;
// ret = 1u;
}
// }
else
// else
{
// {
ret
=
0UL
;
// ret = 0UL;
}
// }
return
ret
;
// return ret;
}
Linelib_uint8_t
Get_LINE_IN_E
(
void
)
{
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
{
ret
=
1u
;
}
else
{
ret
=
0UL
;
}
return
ret
;
}
}
Linelib_uint8_t
Get_LINE_IN_
S
(
void
)
Linelib_uint8_t
Get_LINE_IN_
Coolant_Temperature
(
void
)
{
{
Linelib_uint8_t
ret
=
0U
;
Linelib_uint8_t
ret
=
0U
;
if
(
RTE_GPIO_Get_Level
(
LeftTurn_MUC_OUT
))
if
(
RTE_GPIO_Get_Level
(
A_WaterTemp_IN
))
{
{
ret
=
1u
;
ret
=
1u
;
}
}
...
@@ -161,6 +147,8 @@ Linelib_uint8_t Get_LINE_IN_S(void)
...
@@ -161,6 +147,8 @@ Linelib_uint8_t Get_LINE_IN_S(void)
return
ret
;
return
ret
;
}
}
__align
(
4
)
__align
(
4
)
Linelib_uint8_t
LINE_IN_Men
[
LINE_IN_MAX
*
LINE_IN_BLOCK_SIZE
];
Linelib_uint8_t
LINE_IN_Men
[
LINE_IN_MAX
*
LINE_IN_BLOCK_SIZE
];
...
...
Firmware/Source/Component/Line_In/Line_In_user.h
View file @
d13d1c4a
...
@@ -14,8 +14,8 @@ typedef enum
...
@@ -14,8 +14,8 @@ typedef enum
LINE_IN_Oil_Pressure_Alert
,
LINE_IN_Oil_Pressure_Alert
,
LINE_IN_Voltage
,
LINE_IN_Voltage
,
LINE_IN_Fuel_Level_Low
,
LINE_IN_Fuel_Level_Low
,
LINE_IN_
E
,
LINE_IN_
Coolant_Temperature
,
LINE_IN_S
,
LINE_IN_MAX
,
LINE_IN_MAX
,
}
LINE_IN_Enum_t
;
}
LINE_IN_Enum_t
;
...
@@ -30,6 +30,5 @@ Linelib_uint8_t Get_LINE_IN_Auto_Start_Stop(void);
...
@@ -30,6 +30,5 @@ Linelib_uint8_t Get_LINE_IN_Auto_Start_Stop(void);
Linelib_uint8_t
Get_LINE_IN_Oil_Pressure_Alert
(
void
);
Linelib_uint8_t
Get_LINE_IN_Oil_Pressure_Alert
(
void
);
Linelib_uint8_t
Get_LINE_IN_Voltage
(
void
);
Linelib_uint8_t
Get_LINE_IN_Voltage
(
void
);
Linelib_uint8_t
Get_LINE_IN_Fuel_Level_Low
(
void
);
Linelib_uint8_t
Get_LINE_IN_Fuel_Level_Low
(
void
);
Linelib_uint8_t
Get_LINE_IN_E
(
void
);
Linelib_uint8_t
Get_LINE_IN_Coolant_Temperature
(
void
);
Linelib_uint8_t
Get_LINE_IN_S
(
void
);
#endif
#endif
Firmware/Source/Component/Menu/Menu.h
View file @
d13d1c4a
...
@@ -58,28 +58,28 @@ typedef enum
...
@@ -58,28 +58,28 @@ typedef enum
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
/*19 蓝牙_开*/
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
/*19 蓝牙_开*/
MENU_ITEM_BLUETOOTH_SYNC
,
/*20 蓝牙同步联系人*/
MENU_ITEM_BLUETOOTH_SYNC
,
/*20 蓝牙同步联系人*/
MENU_ITEM_BLUETOOTH_BACK
,
/*
30
蓝牙返回*/
MENU_ITEM_BLUETOOTH_BACK
,
/*
21
蓝牙返回*/
MENU_ITEM_CLOCK_HOUR_TENB
,
/*
31
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_TENB
,
/*
22
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT
,
/*
32
时钟小时个位*/
MENU_ITEM_CLOCK_HOUR_BIT
,
/*
23
时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB
,
/*
33
时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_TENB
,
/*
24
时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT
,
/*
34
时钟分钟个位*/
MENU_ITEM_CLOCK_MIN_BIT
,
/*
25
时钟分钟个位*/
MENU_ITEM_CLOCK_BACK
,
/*
35
时钟返回*/
MENU_ITEM_CLOCK_BACK
,
/*
26
时钟返回*/
MENU_ITEM_CLOCK_HOUR_TENB_SET
,
/*
36
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_TENB_SET
,
/*
27
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT_SET
,
/*
37
时钟小时个位*/
MENU_ITEM_CLOCK_HOUR_BIT_SET
,
/*
28
时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB_SET
,
/*
38
时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_TENB_SET
,
/*
29
时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT_SET
,
/*3
9
时钟分钟个位*/
MENU_ITEM_CLOCK_MIN_BIT_SET
,
/*3
0
时钟分钟个位*/
MENU_ITEM_UNIT_KM
,
/*
40
选中公制*/
MENU_ITEM_UNIT_KM
,
/*
31
选中公制*/
MENU_ITEM_UNIT_MILE
,
/*
41
选中英制*/
MENU_ITEM_UNIT_MILE
,
/*
32
选中英制*/
MENU_ITEM_LANGUAGE_CHINESE
,
/*
42
选中中文*/
MENU_ITEM_LANGUAGE_CHINESE
,
/*
33
选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH
,
/*
43
选中英文*/
MENU_ITEM_LANGUAGE_ENGLISH
,
/*
34
选中英文*/
MENU_ITEM_PHONE_CONNECT_SET
,
MENU_ITEM_PHONE_CONNECT_SET
,
MENU_ITEM_PHONE_CONNECT_APP
,
/*
44
手机互联成功*/
MENU_ITEM_PHONE_CONNECT_APP
,
/*
35
手机互联成功*/
MENU_ITEM_MAX
,
MENU_ITEM_MAX
,
}
Menu_Item_en_t
;
}
Menu_Item_en_t
;
...
...
Firmware/Source/Component/Telltales/Telltales_user.c
View file @
d13d1c4a
...
@@ -56,7 +56,6 @@ const LED_Attribute_st LED_Attribute [ LED_Max ] = {
...
@@ -56,7 +56,6 @@ const LED_Attribute_st LED_Attribute [ LED_Max ] = {
{
em_LED_WIFI
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_WIFI_Judgement
,
LED_WIFI_Execution
},
{
em_LED_WIFI
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_WIFI_Judgement
,
LED_WIFI_Execution
},
{
em_LED_Bluetooth
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_Bluetooth_Judgement
,
LED_Bluetooth_Execution
},
{
em_LED_Bluetooth
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_Bluetooth_Judgement
,
LED_Bluetooth_Execution
},
{
em_LED_E
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_E_Judgement
,
LED_E_Execution
},
{
em_LED_E
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_E_Judgement
,
LED_E_Execution
},
{
em_LED_S
,
SelfCheck
,
NoExterNalCheck
,
LED_IGN_ON
,
0u
,
3000ul
,
LED_S_Judgement
,
LED_S_Execution
},
};
};
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
Tellib_uint8_t
Tel_Mem
[
Tel_MEM_Block_Size
*
LED_Max
+
Tel_MEM_Block_Addition
];
void
Telltales_Init
(
void
)
void
Telltales_Init
(
void
)
...
@@ -73,8 +72,11 @@ void Can_ID_401(uint8_t CopyData [])
...
@@ -73,8 +72,11 @@ void Can_ID_401(uint8_t CopyData [])
{
{
u8CanId401Flag
=
1
;
u8CanId401Flag
=
1
;
}
}
/******************************************************************************************************************************************************************************************************************* */
static
Tellib_uint16_t
LED_Turn_Left_Judgement
(
void
)
//硬线-P10 高电平
/*硬线-P10 高电平点亮*/
static
Tellib_uint16_t
LED_Turn_Left_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Turn_Left
))
if
(
Line_In_Get_Status
(
LINE_IN_Turn_Left
))
...
@@ -89,17 +91,11 @@ static Tellib_uint16_t LED_Turn_Left_Judgement(void)//硬线-P10 高电平
...
@@ -89,17 +91,11 @@ static Tellib_uint16_t LED_Turn_Left_Judgement(void)//硬线-P10 高电平
}
}
static
void
LED_Turn_Left_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Turn_Left_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(TurnLeft_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(TurnLeft_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线-P9 高电平*/
/*硬线-P9 高电平点亮*/
static
Tellib_uint16_t
LED_Turn_Right_Judgement
(
void
)
static
Tellib_uint16_t
LED_Turn_Right_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
...
@@ -115,16 +111,11 @@ static Tellib_uint16_t LED_Turn_Right_Judgement(void)
...
@@ -115,16 +111,11 @@ static Tellib_uint16_t LED_Turn_Right_Judgement(void)
}
}
static
void
LED_Turn_Right_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Turn_Right_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(TurnRight_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(TurnRight_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线-P18 高电平*/
/*硬线-P18 高电平点亮*/
static
Tellib_uint16_t
LED_High_Beam_Judgement
(
void
)
static
Tellib_uint16_t
LED_High_Beam_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
...
@@ -140,70 +131,53 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void)
...
@@ -140,70 +131,53 @@ static Tellib_uint16_t LED_High_Beam_Judgement(void)
}
}
static
void
LED_High_Beam_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_High_Beam_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(HighBeam_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(HighBeam_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线-P15 低电平*/
/*硬线-P15 低电平点亮*/
static
Tellib_uint16_t
LED_Efi_Fault_Judgement
(
void
)
static
Tellib_uint16_t
LED_Efi_Fault_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Efi_Fault
))
if
(
Line_In_Get_Status
(
LINE_IN_Efi_Fault
)
==
0u
)
{
{
LED_STATE
=
1
;
LED_STATE
=
1
u
;
}
}
else
else
{
{
LED_STATE
=
0
;
LED_STATE
=
0
u
;
}
}
return
LED_STATE
;
return
LED_STATE
;
}
}
static
void
LED_Efi_Fault_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Efi_Fault_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(EfiFault_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(EfiFault_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线-P7 悬空/高点亮 接地灭*/
/*硬线-P7 悬空/高点亮 接地灭*/
static
Tellib_uint16_t
LED_ABS_Judgement
(
void
)
static
Tellib_uint16_t
LED_ABS_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_ABS
))
if
(
Line_In_Get_Status
(
LINE_IN_ABS
)
==
0
)
{
{
LED_STATE
=
1
;
LED_STATE
=
0
;
}
}
else
else
{
{
LED_STATE
=
0
;
LED_STATE
=
1
;
}
}
return
LED_STATE
;
return
LED_STATE
;
}
}
static
void
LED_ABS_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_ABS_Execution
(
Tellib_uint16_t
led_status
)
{
{
// 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 低电平*/
/*硬线-P12 低电平*/
static
Tellib_uint16_t
LED_Auto_Start_Stop_Judgement
(
void
)
static
Tellib_uint16_t
LED_Auto_Start_Stop_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Auto_Start_Stop
))
if
(
Line_In_Get_Status
(
LINE_IN_Auto_Start_Stop
)
==
0
)
{
{
LED_STATE
=
1
;
LED_STATE
=
1
;
}
}
...
@@ -215,20 +189,15 @@ static Tellib_uint16_t LED_Auto_Start_Stop_Judgement(void)
...
@@ -215,20 +189,15 @@ static Tellib_uint16_t LED_Auto_Start_Stop_Judgement(void)
}
}
static
void
LED_Auto_Start_Stop_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Auto_Start_Stop_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(AutoStartStop_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(AutoStartStop_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线-P21 低电平*/
/*硬线-P21 低电平点亮*/
static
Tellib_uint16_t
LED_Oil_Pressure_Alert_Judgement
(
void
)
static
Tellib_uint16_t
LED_Oil_Pressure_Alert_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Oil_Pressure_Alert
))
if
(
Line_In_Get_Status
(
LINE_IN_Oil_Pressure_Alert
)
==
0
)
{
{
LED_STATE
=
1
;
LED_STATE
=
1
;
}
}
...
@@ -240,81 +209,86 @@ static Tellib_uint16_t LED_Oil_Pressure_Alert_Judgement(void)
...
@@ -240,81 +209,86 @@ static Tellib_uint16_t LED_Oil_Pressure_Alert_Judgement(void)
}
}
static
void
LED_Oil_Pressure_Alert_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Oil_Pressure_Alert_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(OilPressureAlert_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(OilPressureAlert_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*CAN信号来源:TCS_37B*/
/*
*@name:TCS指示灯
*@return: 0-都不亮 1-TCS亮 2-TCS/亮 3-TCS闪烁
*/
static
Tellib_uint16_t
LED_TCS_Judgement
(
void
)
static
Tellib_uint16_t
LED_TCS_Judgement
(
void
)
{
{
//Tellib_uint16_t LED_STATE = 0u;
Tellib_uint16_t
LED_STATE
=
0u
;
//if (CAN_MSG_Status(&CAN_CH0_CanMsgOp, CAN_CH0_ID_CH0_37B_Msg_Count) == CAN_SIG_LOST)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_37B_Msg_Count
)
==
CAN_SIG_LOST
)
//{
{
// LED_STATE = 0u;
LED_STATE
=
0u
;
//}
}
//else
else
//{
{
// if(Get_CAN_CH0_ID_37B_Sig_TCS_Work_Mode() == 1)
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Work_Mode
==
0x0
)
// {
{
// LED_STATE = 1u;
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Warning_Lamp
()
==
0x1
)
// }
{
// else
LED_STATE
=
1u
;
/*TCS灯亮*/
// {
}
// LED_STATE = 0u;
else
// }
{
//}
LED_STATE
=
0u
;
/*都不亮*/
//return LED_STATE;
}
}
else
{
if
(
Get_CAN_CH0_ID_37B_Sig_TCS_Warning_Lamp
()
==
0x1
)
{
LED_STATE
=
2u
;
/*TCS/亮*/
}
else
{
;
}
}
}
return
LED_STATE
;
}
}
static
void
LED_TCS_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_TCS_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(TCS_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(TCS_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*信号来源:ISG_111*/
/*
*信号来源:ISG_111
*/
static
Tellib_uint16_t
LED_HEV_Judgement
(
void
)
static
Tellib_uint16_t
LED_HEV_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_111_Msg_Count
)
==
CAN_SIG_LOST
)
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_111_Msg_Count
)
==
CAN_SIG_LOST
)
{
{
LED_STATE
=
0u
;
LED_STATE
=
0u
;
}
}
else
else
{
{
if
((
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0x01UL
)
||
((
Get_CAN_CH0_ID_111_Sig_ISG_Power
()
==
1u
)
&&
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
0u
)))
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0x01UL
)
{
{
LED_STATE
=
1u
;
LED_STATE
=
1u
;
}
}
else
if
((
Get_CAN_CH0_ID_111_Sig_ISG_Ready
()
==
0UL
)
||
(
Get_CAN_CH0_ID_111_Sig_ISG_Power
()
==
0u
)
||
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
0u
))
else
{
{
LED_STATE
=
0u
;
LED_STATE
=
0u
;
}
}
else
}
{
return
LED_STATE
;
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
}
}
static
void
LED_HEV_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_HEV_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
;
// {
// RTE_GPIO_Set_Level(HEV_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(HEV_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线-P19 电压值*/
/*硬线-P19 电压值*/
static
Tellib_uint16_t
LED_Voltage_Judgement
(
void
)
static
Tellib_uint16_t
LED_Voltage_Judgement
(
void
)
{
{
...
@@ -331,15 +305,10 @@ static Tellib_uint16_t LED_Voltage_Judgement(void)
...
@@ -331,15 +305,10 @@ static Tellib_uint16_t LED_Voltage_Judgement(void)
}
}
static
void
LED_Voltage_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Voltage_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
;
// {
// RTE_GPIO_Set_Level(Voltage_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(Voltage_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*硬线P14-阻值*/
/*硬线P14-阻值*/
static
Tellib_uint16_t
LED_Fuel_Level_Low_Judgement
(
void
)
static
Tellib_uint16_t
LED_Fuel_Level_Low_Judgement
(
void
)
{
{
...
@@ -356,110 +325,106 @@ static Tellib_uint16_t LED_Fuel_Level_Low_Judgement(void)
...
@@ -356,110 +325,106 @@ static Tellib_uint16_t LED_Fuel_Level_Low_Judgement(void)
}
}
static
void
LED_Fuel_Level_Low_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Fuel_Level_Low_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
}
// RTE_GPIO_Set_Level(FuelLevelLow_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(FuelLevelLow_MUC_OUT, LED_LINEOUT_Low);
// }
}
//
/*信号来源:ECU_101 +硬线-P11 阻值 CAN>硬线*/
/*信号来源:ECU_101 +硬线-P11 阻值 CAN>硬线*/
static
Tellib_uint16_t
LED_Coolant_Temperature_Judgement
(
void
)
static
Tellib_uint16_t
LED_Coolant_Temperature_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
if
(
CAN_MSG_Status
(
&
CAN_CH0_CanMsgOp
,
CAN_CH0_ID_CH0_101_Msg_Count
)
==
CAN_SIG_LOST
)
{
LED_STATE
=
0u
;
if
(
Line_In_Get_Status
(
LINE_IN_Coolant_Temperature
))
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
}
else
{
if
(
Get_CAN_CH0_ID_101_Sig_ECU_Engine_Temperature_State
()
==
0x01UL
)
{
LED_STATE
=
1u
;
}
else
{
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
}
}
static
void
LED_Coolant_Temperature_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Coolant_Temperature_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(CoolantTemperature_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(CoolantTemperature_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*无*/
/*wifi*/
static
Tellib_uint16_t
LED_WIFI_Judgement
(
void
)
static
Tellib_uint16_t
LED_WIFI_Judgement
(
void
)
{
{
Tellib_uint16_t
LED_STATE
=
0u
;
Tellib_uint16_t
LED_STATE
=
0u
;
/*设置为常灭*/
// if (Line_In_Get_Status(LINE_IN_WIFI))
// {
// LED_STATE = 1;
// }
// else
// {
// LED_STATE = 0;
// }
return
LED_STATE
;
return
LED_STATE
;
}
}
static
void
LED_WIFI_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_WIFI_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
;
// {
// RTE_GPIO_Set_Level(WIFI_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(WIFI_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*信号来源:蓝牙模块*/
/*bluetooth*/
static
Tellib_uint16_t
LED_Bluetooth_Judgement
(
void
)
static
Tellib_uint16_t
LED_Bluetooth_Judgement
(
void
)
{
{
// Tellib_uint16_t LED_STATE = 0u;
Tellib_uint16_t
LED_STATE
=
0u
;
// if (Line_In_Get_Status(LINE_IN_Bluetooth))
return
LED_STATE
;
// {
// LED_STATE = 1;
// }
// else
// {
// LED_STATE = 0;
// }
// return LED_STATE;
}
}
static
void
LED_Bluetooth_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_Bluetooth_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
;
// {
// RTE_GPIO_Set_Level(Bluetooth_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(Bluetooth_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*信号来源:0x111*/
/*
* E S指示灯
*信号来源:0x111
* 0-都不亮 1-E亮 2-S亮
*/
static
Tellib_uint16_t
LED_E_Judgement
(
void
)
static
Tellib_uint16_t
LED_E_Judgement
(
void
)
{
{
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_Power
()
==
0x01UL
)
{
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
1u
)
{
LED_STATE
=
1u
;
}
else
if
(
Get_CAN_CH0_ID_111_Sig_ISG_Power_Enable
()
==
2u
)
{
LED_STATE
=
2u
;
}
else
{
LED_STATE
=
0u
;
}
}
else
{
LED_STATE
=
0u
;
}
}
return
LED_STATE
;
}
}
static
void
LED_E_Execution
(
Tellib_uint16_t
led_status
)
static
void
LED_E_Execution
(
Tellib_uint16_t
led_status
)
{
{
// if (led_status == 1u)
;
// {
// RTE_GPIO_Set_Level(E_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(E_MUC_OUT, LED_LINEOUT_Low);
// }
}
}
/*信号来源:0x111*/
static
Tellib_uint16_t
LED_S_Judgement
(
void
)
{
}
static
void
LED_S_Execution
(
Tellib_uint16_t
led_status
)
{
// if (led_status == 1u)
// {
// RTE_GPIO_Set_Level(S_MUC_OUT, LED_LINEOUT_High);
// }
// else
// {
// RTE_GPIO_Set_Level(S_MUC_OUT, LED_LINEOUT_Low);
// }
}
\ No newline at end of file
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