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
2ec140ad
Commit
2ec140ad
authored
Aug 03, 2024
by
时昊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wangyanan' into 'dev'
✨
feat:获取光标进行菜单切换/显示模式的一级菜单和二级菜单已经修改完成 See merge request
!12
parents
96ee6f9d
c7bc3375
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
436 additions
and
304 deletions
+436
-304
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+371
-261
AMT630H_Datas.h
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
+30
-8
Menu.h
Firmware/Source/Component/Menu/Menu.h
+35
-35
No files found.
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
2ec140ad
#include "Components.h"
uint8_t
Pic_mode
=
PIC_DAYTIME_CH
;
uint8_t
MENU_MODE
=
MAIN_MENU
;
uint8_t
g_u8Display_Mode
=
ModeDAY
;
uint8_t
g_u8Language
=
CH
;
uint8_t
g_u8Backlight
=
Backlight_1
;
// 菜单背景,菜单前必带
void
AMT630H_GUI_BACKGRAND
(
void
);
// 菜单调用函数
...
...
@@ -18,7 +23,7 @@ void AMT630H_GUI_Clock_Information(uint8_t Clock_Hour, uint8_t Clock_Min);
// 二级菜单
static
void
AMT630H_GUI_Clock_Setting
(
uint8_t
Clock_Hour
,
uint8_t
Clock_Min
,
uint8_t
Clock_BIT
);
/*时钟设置*/
void
AMT630H_GUI_Backlight_Setting
(
uint8_t
back_mode
);
/*背光设置*/
void
AMT630H_GUI_Display_Mode_Setting
(
uint8_t
D
isplay_mode
);
/*显示模式*/
void
AMT630H_GUI_Display_Mode_Setting
(
Menu_Item_en_t
d
isplay_mode
);
/*显示模式*/
void
AMT630H_GUI_Bluetooth_Connect_Setting
(
uint8_t
select
,
uint8_t
sync_contacts
,
uint8_t
Connect_ON
);
/*蓝牙连接*/
void
AMT630H_GUI_Unit_Setting
(
uint8_t
select
);
/*单位设置*/
void
AMT630H_GUI_Language_Setting
(
uint8_t
select
);
/*语言设置*/
...
...
@@ -83,122 +88,144 @@ void AMT630H_GUI_Fault_Information(void)
* @brief 显示模式信息 一级菜单
* @param[in] null
*/
void
AMT630H_GUI_Display_Mode_Information
(
void
)
void
AMT630H_GUI_Display_Mode_Information
()
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
if
(
g_u8Language
==
CH
)
/*日间中文*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0190_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0191_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0161_207_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0185_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0192_445_517
);
// if(Menu_Item_Select_Get(MENU_ITEM_SELECT_DAYTIME) == 1)
// {
/*日间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0152_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0149_448_101
);
// g_u8Display_Mode = ModeDAY;
// }
// else
// {
// ;
// }
}
else
if
(
g_u8Language
==
EN
)
/*日间英文*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0123_18_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0124_898_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_222_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0125_729_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0126_415_519
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
)
==
1
)
{
/*日间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0074_422_103
);
}
else
{
;
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
}
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
/*夜间中文*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0377_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0378_903_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0348_207_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0372_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0379_445_517
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
)
==
1
)
{
/*夜间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0339_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0123_18_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0124_898_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0086_222_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0125_729_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0126_415_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0077_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
;
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
}
else
if
(
g_u8Language
==
EN
)
/*夜间英文*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0311_18_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0312_898_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0272_222_487
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0313_729_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0314_415_519
);
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
)
==
1
)
{
/*夜间图标变大*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0258_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0263_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
}
else
{
;
}
}
}
/*else if自动模式没写*/
}
/*背光设置*/
void
AMT630H_GUI_Backlight_Information
(
void
)
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
=
ModeDAY
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0187_37_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0188_904_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0156_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0181_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0189_446_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0374_37_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0375_904_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0343_197_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0368_737_485
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0376_446_517
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0118_52_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0119_891_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0120_174_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0121_732_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0122_436_519
);
}
}
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
else
if
(
g_u8Display_Mode
=
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0118_52_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0119_891_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0120_174_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0121_732_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0122_436_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0069_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0060_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0068_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0062_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0065_504_136
);
}
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0306_52_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0307_891_398
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0308_174_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0309_732_486
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0310_436_519
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0255_506_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0246_504_286
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0254_505_236
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0248_503_186
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0251_504_136
);
}
}
}
static
uint16_t
Bluetooth_num_day
[]
=
{
...
...
@@ -1053,124 +1080,199 @@ static void AMT630H_GUI_Clock_Setting(uint8_t Clock_Hour, uint8_t Clock_Min, uin
* @brief 显示模式设置 二级菜单
* @param[in] back_mode 显示模式 0为日间 1为夜间 2为自动
*/
void
AMT630H_GUI_Display_Mode_Setting
(
uint8_t
Display_mode
)
/*图 显示模式*/
void
AMT630H_GUI_Display_Mode_Setting
(
Menu_Item_en_t
display_mode
)
/*图 显示模式*/
{
/*日间中文*/
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0146_27_396
);
switch
(
Display_mode
)
switch
(
display_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
case
MENU_ITEM_SELECT_DAYTIME
:
if
(
g_u8Language
==
CH
)
/*处于日间模式 进入显示模式设置 :中文 光标选中日间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0146_27_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0149_448_101
);
}
else
if
(
g_u8Language
==
EN
)
/*处于日间模式 进入显示模式设置 :英文 光标选中日间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0071_18_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0074_422_103
);
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
))
{
g_u8Display_Mode
=
ModeDAY
;
}
else
{
;
}
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
case
MENU_ITEM_SELECT_NIGHTTIME
:
if
(
g_u8Language
==
CH
)
/*处于日间模式 进入显示模式设置 :中文 光标选中夜间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0146_27_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0147_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0152_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
}
else
if
(
g_u8Language
==
EN
)
/*处于日间模式 进入显示模式设置 :英文 光标选中夜间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0071_18_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0077_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
))
{
g_u8Display_Mode
=
ModeNIGHT
;
}
else
{
;
}
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
case
MENU_ITEM_SELECT_AUTO
:
if
(
g_u8Language
==
CH
)
/*处于日间模式 进入显示模式设置 :中文 光标选中自动模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0146_27_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0150_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0148_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0151_476_117
);
}
else
if
(
g_u8Language
==
EN
)
/*处于日间模式 进入显示模式设置 :英文 光标选中夜间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0071_18_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0075_409_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
))
{
g_u8Display_Mode
=
ModeATUO
;
}
else
{
;
}
break
;
default:
break
;
}
}
/*夜间中文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0333_27_396
);
switch
(
Display_mode
)
switch
(
display_mode
)
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
case
MENU_ITEM_SELECT_DAYTIME
:
if
(
g_u8Language
==
CH
)
/*处于夜间模式 进入显示模式设置 :中文 光标选中日间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0333_27_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_256
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0336_448_101
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0339_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0337_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
break
;
default:
break
;
}
}
else
if
(
g_u8Language
==
EN
)
/*处于夜间模式 进入显示模式设置 :英文 光标选中日间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0257_18_397
);
/*组*/
/*日间英文*/
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0258_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0260_422_103
);
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_DAYTIME
))
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0071_18_397
);
switch
(
Display_mode
)
g_u8Display_Mode
=
ModeDAY
;
}
else
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0074_422_103
);
;
}
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0072_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0077_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
case
MENU_ITEM_SELECT_NIGHTTIME
:
if
(
g_u8Language
==
CH
)
/*处于夜间模式 进入显示模式设置 :中文 光标选中夜间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0333_27_396
);
/*组*/
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0075_409_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0073_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0076_461_118
);
break
;
default:
break
;
}
}
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
/*光标*/
/*夜间英文*/
else
if
(
Pic_mode
==
PIC_NIGHTTIME_EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0257_18_397
);
switch
(
Display_mode
)
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0334_476_359
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0339_434_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
}
else
if
(
g_u8Language
==
EN
)
/*处于夜间模式 进入显示模式设置 :英文 光标选中夜间模式*/
{
case
0
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_90
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0258_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_257
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0260_422_103
);
break
;
case
1
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0257_18_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_221
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0258_454_360
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0263_414_234
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_NIGHTTIME
))
{
g_u8Display_Mode
=
ModeNIGHT
;
}
else
{
;
}
break
;
case
2
:
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
case
MENU_ITEM_SELECT_AUTO
:
if
(
g_u8Language
==
CH
)
/*处于夜间模式 进入显示模式设置 :中文 光标选中自动模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0333_27_396
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0337_448_343
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0335_472_231
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0338_476_117
);
}
else
if
(
g_u8Language
==
EN
)
/*处于夜间模式 进入显示模式设置 :英文 光标选中夜间模式*/
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0257_18_397
);
/*组*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_332
);
/*光标*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0261_409_345
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0259_456_232
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0262_461_118
);
}
if
(
Menu_Item_Select_Get
(
MENU_ITEM_SELECT_AUTO
))
{
g_u8Display_Mode
=
ModeATUO
;
}
else
{
;
}
break
;
default:
break
;
...
...
@@ -1178,6 +1280,7 @@ void AMT630H_GUI_Display_Mode_Setting(uint8_t Display_mode) /*图 显示模式*/
}
}
/**
* @brief 背光设置 二级菜单
* @param[in] back_mode 背光模式 0为自动
...
...
@@ -2695,32 +2798,37 @@ void AMT630H_GUI_BACKGRAND()
}
void
AMT630H_GUI_SETTING
()
{
if
(
Pic_mode
==
PIC_DAYTIME_CH
)
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002_0_0
);
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
/*修改为PNG格式*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_CH
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193
_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0002
_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_DAYTIME_EN
)
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Language
==
CH
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0315_27_396
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
else
if
(
Pic_mode
==
PIC_NIGHTTIME_
EN
)
else
if
(
g_u8Language
==
EN
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0193_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0194_23_397
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0004_336_140
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0380_396_528
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0381_615_528
);
}
}
}
void
AMT630H_GUI_DisplayProc
(
void
)
...
...
@@ -2731,6 +2839,8 @@ void AMT630H_GUI_DisplayProc(void)
PackedTransfer_Page
();
}
void
AMT630H_GUI_ReadPosittion_Display
(
void
)
{
switch
(
g_u8Cursor_Posittion
)
...
...
@@ -2738,21 +2848,21 @@ void AMT630H_GUI_ReadPosittion_Display(void)
case
MENU_ITEM_MAIN_ITEM
:
/*主界面*/
AMT630H_GUI_BACKGRAND
();
/*主界面*/
break
;
case
MENU_ITEM_DISPLAY_MODE
:
/*0
0
显示模式*/
case
MENU_ITEM_DISPLAY_MODE
:
/*0
1
显示模式*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Information
();
break
;
case
MENU_ITEM_SELECT_DAYTIME
:
/*
01 选中日间
*/
case
MENU_ITEM_SELECT_DAYTIME
:
/*
日间模式
*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Setting
(
0
);
AMT630H_GUI_Display_Mode_Setting
(
MENU_ITEM_SELECT_DAYTIME
);
break
;
case
MENU_ITEM_SELECT_NIGHTTIME
:
/*
02 选中夜间
*/
case
MENU_ITEM_SELECT_NIGHTTIME
:
/*
夜间模式
*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Setting
(
1
);
AMT630H_GUI_Display_Mode_Setting
(
MENU_ITEM_SELECT_NIGHTTIME
);
break
;
case
MENU_ITEM_SELECT_AUTO
:
/*
03 选中自动
*/
case
MENU_ITEM_SELECT_AUTO
:
/*
自动模式
*/
AMT630H_GUI_SETTING
();
AMT630H_GUI_Display_Mode_Setting
(
2
);
AMT630H_GUI_Display_Mode_Setting
(
MENU_ITEM_SELECT_AUTO
);
break
;
case
MENU_ITEM_BACKLIGHT_SETTING
:
/*04 背光设置*/
AMT630H_GUI_SETTING
();
...
...
Firmware/Source/Component/AMT630H/AMT630H_Datas.h
View file @
2ec140ad
#ifndef A69FAEFD_36D2_473A_A858_C02318EB402B
#define A69FAEFD_36D2_473A_A858_C02318EB402B
/*语言*/
typedef
enum
{
PIC_DAYTIME_CH
=
0
,
//日间
中文
PIC_NIGHTTIME_CH
,
//夜间中文
PIC_DAYTIME_EN
,
//日间英文
PIC_NIGHTTIME_EN
,
//夜间英文
PIC_DAYTIME_CH
=
0
,
//日间
PIC_NIGHTTIME_CH
,
PIC_DAYTIME_EN
,
//夜间
PIC_NIGHTTIME_EN
,
PIC_Max
,
}
_Picture_Mode
;
/*日间夜间自动*/
typedef
enum
{
ModeDAY
=
0
,
//日间中文
ModeNIGHT
,
ModeATUO
,
}
_g_u8Display_Mode
;
/*语言设置*/
typedef
enum
{
CH
=
0
,
EN
,
}
_g_u8Language
;
typedef
enum
{
MAIN_MENU
=
0
,
SETTING_MENU
,
Backlight_1
=
0
,
Backlight_2
,
Backlight_3
,
Backlight_4
,
Backlight_5
,
Backlight_ATUO
,
}
_g_u8Backlight
;
}
_MENU_MODE
;
extern
void
AMT630H_GUI_DisplayProc
(
void
);
...
...
Firmware/Source/Component/Menu/Menu.h
View file @
2ec140ad
...
...
@@ -35,51 +35,51 @@ typedef unsigned int Menu_uint32_t;
typedef
enum
{
MENU_ITEM_MAIN_ITEM
=
0
,
/*主界面*/
MENU_ITEM_DISPLAY_MODE
,
/*0
0
显示模式*/
MENU_ITEM_BACKLIGHT_SETTING
,
/*0
4
背光设置*/
MENU_ITEM_BLUETOOTH_CONNECT
,
/*
11
蓝牙连接*/
MENU_ITEM_CLOCK_SETTING
,
/*
15
时钟设置*/
MENU_ITEM_UNIT_SETTING
,
/*
21
单位设置*/
MENU_ITEM_LANGUAGE_SETTING
,
/*
24
语言设置*/
MENU_ITEM_FAULT_INFORMATION
,
/*
2
7 故障信息*/
MENU_ITEM_PHONE_CONNECT
,
/*
2
8 手机互联*/
MENU_ITEM_QUIT
,
/*
2
9 退出*/
MENU_ITEM_DISPLAY_MODE
,
/*0
1
显示模式*/
MENU_ITEM_BACKLIGHT_SETTING
,
/*0
2
背光设置*/
MENU_ITEM_BLUETOOTH_CONNECT
,
/*
03
蓝牙连接*/
MENU_ITEM_CLOCK_SETTING
,
/*
04
时钟设置*/
MENU_ITEM_UNIT_SETTING
,
/*
05
单位设置*/
MENU_ITEM_LANGUAGE_SETTING
,
/*
06
语言设置*/
MENU_ITEM_FAULT_INFORMATION
,
/*
0
7 故障信息*/
MENU_ITEM_PHONE_CONNECT
,
/*
0
8 手机互联*/
MENU_ITEM_QUIT
,
/*
0
9 退出*/
MENU_ITEM_SELECT_DAYTIME
,
/*
01
选中日间*/
MENU_ITEM_SELECT_NIGHTTIME
,
/*
02
选中夜间*/
MENU_ITEM_SELECT_AUTO
,
/*
03
选中自动*/
MENU_ITEM_SELECT_DAYTIME
,
/*
10
选中日间*/
MENU_ITEM_SELECT_NIGHTTIME
,
/*
11
选中夜间*/
MENU_ITEM_SELECT_AUTO
,
/*
12
选中自动*/
MENU_ITEM_BACKLIGHT_5
,
/*1
0
背光_5*/
MENU_ITEM_BACKLIGHT_4
,
/*
09
背光_4*/
MENU_ITEM_BACKLIGHT_3
,
/*
08
背光_3*/
MENU_ITEM_BACKLIGHT_2
,
/*
07
背光_2*/
MENU_ITEM_BACKLIGHT_1
,
/*
06
背光_1*/
MENU_ITEM_BACKLIGHT_AUTO
,
/*
05
背光自动*/
MENU_ITEM_BACKLIGHT_5
,
/*1
3
背光_5*/
MENU_ITEM_BACKLIGHT_4
,
/*
14
背光_4*/
MENU_ITEM_BACKLIGHT_3
,
/*
15
背光_3*/
MENU_ITEM_BACKLIGHT_2
,
/*
16
背光_2*/
MENU_ITEM_BACKLIGHT_1
,
/*
17
背光_1*/
MENU_ITEM_BACKLIGHT_AUTO
,
/*
18
背光自动*/
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
/*1
2
蓝牙_开*/
MENU_ITEM_BLUETOOTH_SYNC
,
/*
13
蓝牙同步联系人*/
MENU_ITEM_BLUETOOTH_BACK
,
/*
14
蓝牙返回*/
MENU_ITEM_BLUETOOTH_OPEN_CLOSE
,
/*1
9
蓝牙_开*/
MENU_ITEM_BLUETOOTH_SYNC
,
/*
20
蓝牙同步联系人*/
MENU_ITEM_BLUETOOTH_BACK
,
/*
30
蓝牙返回*/
MENU_ITEM_CLOCK_HOUR_TENB
,
/*
20
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT
,
/*
19
时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB
,
/*
18
时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT
,
/*
17
时钟分钟个位*/
MENU_ITEM_CLOCK_BACK
,
/*
16
时钟返回*/
MENU_ITEM_CLOCK_HOUR_TENB
,
/*
31
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT
,
/*
32
时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB
,
/*
33
时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT
,
/*
34
时钟分钟个位*/
MENU_ITEM_CLOCK_BACK
,
/*
35
时钟返回*/
MENU_ITEM_CLOCK_HOUR_TENB_SET
,
/*
20
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT_SET
,
/*
19
时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB_SET
,
/*
1
8 时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT_SET
,
/*
17
时钟分钟个位*/
MENU_ITEM_CLOCK_HOUR_TENB_SET
,
/*
36
时钟小时十位*/
MENU_ITEM_CLOCK_HOUR_BIT_SET
,
/*
37
时钟小时个位*/
MENU_ITEM_CLOCK_MIN_TENB_SET
,
/*
3
8 时钟分钟十位*/
MENU_ITEM_CLOCK_MIN_BIT_SET
,
/*
39
时钟分钟个位*/
MENU_ITEM_UNIT_KM
,
/*
22
选中公制*/
MENU_ITEM_UNIT_MILE
,
/*
23
选中英制*/
MENU_ITEM_UNIT_KM
,
/*
40
选中公制*/
MENU_ITEM_UNIT_MILE
,
/*
41
选中英制*/
MENU_ITEM_LANGUAGE_CHINESE
,
/*
25
选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH
,
/*
26
选中英文*/
MENU_ITEM_LANGUAGE_CHINESE
,
/*
42
选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH
,
/*
43
选中英文*/
MENU_ITEM_PHONE_CONNECT_SET
,
MENU_ITEM_PHONE_CONNECT_APP
,
/*
28
手机互联成功*/
MENU_ITEM_PHONE_CONNECT_APP
,
/*
44
手机互联成功*/
MENU_ITEM_MAX
,
}
Menu_Item_en_t
;
...
...
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