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
4a8123c2
Commit
4a8123c2
authored
Jul 08, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加菜单功能
parent
18d7078b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
471 additions
and
575 deletions
+471
-575
Menu.h
Firmware/Source/Component/Menu/Menu.h
+59
-47
Menu_Interface.c
Firmware/Source/Component/Menu/Menu_Interface.c
+412
-528
No files found.
Firmware/Source/Component/Menu/Menu.h
View file @
4a8123c2
...
...
@@ -34,64 +34,74 @@ typedef unsigned int Menu_uint32_t;
*/
typedef
enum
{
MENU_ITEM_BACKLIGHT_SETTING
,
/*04 背光设置*/
MENU_ITEM_BACKLIGHT_AUTO
,
/*05 背光自动*/
MENU_ITEM_BACKLIGHT_1
,
/*06 背光_1*/
MENU_ITEM_BACKLIGHT_2
,
/*07 背光_2*/
MENU_ITEM_BACKLIGHT_3
,
/*08 背光_3*/
MENU_ITEM_BACKLIGHT_4
,
/*09 背光_4*/
MENU_ITEM_BACKLIGHT_5
,
/*10 背光_5*/
MENU_ITEM_MAIN_ITEM
=
0
,
/*主界面*/
MENU_ITEM_DISPLAY_MODE
,
/*00 显示模式*/
MENU_ITEM_BACKLIGHT_SETTING
,
/*04 背光设置*/
MENU_ITEM_BLUETOOTH_CONNECT
,
/*11 蓝牙连接*/
MENU_ITEM_CLOCK_SETTING
,
/*15 时钟设置*/
MENU_ITEM_UNIT_SETTING
,
/*21 单位设置*/
MENU_ITEM_LANGUAGE_SETTING
,
/*24 语言设置*/
MENU_ITEM_FAULT_INFORMATION
,
/*27 故障信息*/
MENU_ITEM_PHONE_CONNECT
,
/*28 手机互联*/
MENU_ITEM_QUIT
,
/*29 退出*/
MENU_ITEM_BLUETOOTH_CONNECT
,
/*11 蓝牙连接*/
MENU_ITEM_BLUETOOTH_OPEN
,
/*12 蓝牙_开*/
MENU_ITEM_BLUETOOTH_CLOSE
,
/*13 蓝牙_关*/
MENU_ITEM_BLUETOOTH_BACK
,
/*14 蓝牙返回*/
MENU_ITEM_SELECT_DAYTIME
,
/*01 选中日间*/
MENU_ITEM_SELECT_NIGHTTIME
,
/*02 选中夜间*/
MENU_ITEM_SELECT_AUTO
,
/*03 选中自动*/
MENU_ITEM_BACKLIGHT_5
,
/*10 背光_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_CLOCK_SETTING
,
/*15 时钟设置*/
MENU_ITEM_CLOCK_BACK
,
/*16 时钟返回*/
MENU_ITEM_CLOCK_MIN_BIT
,
/*17 时钟分钟个位*/
MENU_ITEM_CLOCK_MIN_TENB
,
/*18 时钟分钟十位*/
MENU_ITEM_CLOCK_HOUR_BIT
,
/*19 时钟小时个位*/
MENU_ITEM_CLOCK_HOUR_TENB
,
/*20 时钟小时十位*/
MENU_ITEM_BLUETOOTH_OPEN
,
/*12 蓝牙_开*/
MENU_ITEM_BLUETOOTH_CLOSE
,
/*13 蓝牙_关*/
MENU_ITEM_BLUETOOTH_SYNC
,
/*13 蓝牙同步联系人*/
MENU_ITEM_BLUETOOTH_BACK
,
/*14 蓝牙返回*/
MENU_ITEM_UNIT_SETTING
,
/*21 单位设置*/
MENU_ITEM_UNIT_KM
,
/*22 选中公制*/
MENU_ITEM_UNIT_MILE
,
/*23 选中英制*/
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_LANGUAGE_SETTING
,
/*24 语言设置*/
MENU_ITEM_LANGUAGE_CHINESE
,
/*25 选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH
,
/*26 选中英文*/
MENU_ITEM_FAULT_INFORMATION
,
/*27 故障信息*/
MENU_ITEM_PHONE_CONNECT
,
/*28 手机互联*/
MENU_ITEM_PHONE_CONNECT_WIN
,
/*28 手机互联成功*/
MENU_ITEM_QUIT
,
/*29 退出*/
MENU_ITEM_MAX
,
MENU_ITEM_UNIT_KM
,
/*22 选中公制*/
MENU_ITEM_UNIT_MILE
,
/*23 选中英制*/
MENU_ITEM_LANGUAGE_CHINESE
,
/*25 选中中文*/
MENU_ITEM_LANGUAGE_ENGLISH
,
/*26 选中英文*/
MENU_ITEM_PHONE_CONNECT_WIN
,
/*28 手机互联成功*/
MENU_ITEM_MAX
,
}
Menu_Item_en_t
;
/*所有菜单界面的枚举*/
typedef
enum
{
MENU_INTF_DISPLAY_MODE
=
0U
,
/*显示模式*/
MENU_INTF_BACKLIGHT_SETTING
,
/*背光设置*/
MENU_INTF_BLUETOOTH_CONNECT
,
/*蓝牙连接*/
MENU_INTF_CLOCK_SETTING
,
/*时钟设置*/
MENU_INTF_UNIT_SETTING
,
/*单位设置*/
MENU_INTF_LANGUAGE_SETTING
,
/*语言设置*/
MENU_INTF_FAULT_INFORMATION
,
/*故障信息*/
MENU_INTF_MAIN_INTF
=
0
,
MENU_INTF_
PHONE_CONNECT
,
/*手机互联*/
MENU_INTF_
MODE
,
MENU_INTF_QUIT
,
/*退出*/
MENU_INTF_DISPLAY_MODE
,
/*显示模式*/
MENU_INTF_BACKLIGHT_SETTING
,
/*背光设置*/
MENU_INTF_BLUETOOTH_CONNECT
,
/*蓝牙连接*/
MENU_INTF_CLOCK_SETTING
,
/*时钟设置*/
MENU_INTF_UNIT_SETTING
,
/*单位设置*/
MENU_INTF_LANGUAGE_SETTING
,
/*语言设置*/
MENU_INTF_FAULT_INFORMATION
,
/*故障信息*/
MENU_INTF_PHONE_CONNECT
,
/*手机互联*/
MENU_INTF_QUIT
,
/*退出*/
MENU_INTERFACE_MAX
,
}
Menu_Interface_en_t
;
/*所有菜单分支*/
...
...
@@ -398,6 +408,8 @@ extern Menu_uint8_t Menu_Item_Select_Get(Menu_Item_en_t enMenuItem);
/*-----------------------------------------------------------------------------------*/
extern
Menu_uint8_t
u8MenuRamData
[
MENU_RAM_DATA_LEN
];
extern
void
Menu_Service
(
Menu_Key_en_t
enMenuKey
);
void
Menu_User_Init
(
void
);
void
Menu_User_WAKEUP
(
void
);
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
...
...
Firmware/Source/Component/Menu/Menu_Interface.c
View file @
4a8123c2
This diff is collapsed.
Click to expand it.
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