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
bd899f06
Commit
bd899f06
authored
Jul 08, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加按键超时功能
parent
224d593b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
181 additions
and
109 deletions
+181
-109
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+170
-84
Key_user.h
Firmware/Source/Component/Key/Key_user.h
+11
-25
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
bd899f06
This diff is collapsed.
Click to expand it.
Firmware/Source/Component/Key/Key_user.h
View file @
bd899f06
...
@@ -32,36 +32,20 @@ typedef enum
...
@@ -32,36 +32,20 @@ typedef enum
typedef
struct
typedef
struct
{
{
uint16_t
Back_Time_Left
;
uint16_t
Back_Time_Right
;
uint8_t
Back_Time_Right_Flag
;
uint8_t
Back_Time_Left_Flag
;
uint8_t
Set_Hour
;
uint8_t
Set_Hour
;
uint8_t
Set_Minute
;
uint8_t
Set_Minute
;
uint8_t
Dis_Hour
;
uint8_t
Dis_Hour
;
uint8_t
Dis_Minute
;
uint8_t
Dis_Minute
;
uint8_t
Unit
;
uint8_t
Unit
;
uint8_t
Language
;
}
_Menu_Data
;
}
_Menu_Data
;
typedef
enum
{
Page_Time
=
0
,
Page_Time_Set_Hour
,
Page_Time_Set_Minute
,
Page_Max
,
}
_Page_Type
;
extern
uint8_t
PageType
;
extern
uint8_t
Key_Right_Long_Press_Flag
;
extern
uint8_t
Key_Left_Long_Press_Flag
;
extern
uint8_t
ClearODO_Flag
;
extern
uint8_t
ClearODO_Flag
;
// extern uint8_t g_u8Menu_Grade;
extern
uint8_t
g_u8Cursor_Posittion
;
extern
uint8_t
g_u8Cursor_Posittion
;
extern
uint8_t
g_u8Language
;
extern
uint8_t
g_u8Theme
;
extern
uint8_t
g_u8Blue
;
extern
uint8_t
g_u8DVR_Set
;
extern
uint8_t
g_u8Formatting
;
extern
uint8_t
g_u8Factory
;
extern
_Menu_Infor
MenuInfor
;
extern
RTC_CounterTypeDef
counter_val
;
extern
RTC_CounterTypeDef
counter_val
;
extern
void
Key_KL30_Init_EXample
(
void
);
extern
void
Key_KL30_Init_EXample
(
void
);
extern
void
Key_Wakeup_Init_EXample
(
void
);
extern
void
Key_Wakeup_Init_EXample
(
void
);
...
@@ -70,13 +54,15 @@ void Key_Operation_Right(Key_Event_en_t enKeyEvent);
...
@@ -70,13 +54,15 @@ void Key_Operation_Right(Key_Event_en_t enKeyEvent);
void
Key_Operation_Left
(
Key_Event_en_t
enKeyEvent
);
void
Key_Operation_Left
(
Key_Event_en_t
enKeyEvent
);
Key_Status_en_t
Key_Status_Read_Left
(
void
);
Key_Status_en_t
Key_Status_Read_Left
(
void
);
Key_Status_en_t
Key_Status_Read_Right
(
void
);
Key_Status_en_t
Key_Status_Read_Right
(
void
);
void
Key_Event_Short_Press_Left
(
void
);
void
Key_Event_Short_Press_Right
(
void
);
void
KEY_RIGHT_EVENT_NONE_Service
(
void
);
void
KEY_LEFT_EVENT_NONE_Service
(
void
);
void
Key_Auto_Save
(
void
);
void
Key_Auto_Save
(
void
);
uint8_t
Get_Dis_Hour_Time
(
void
);
uint8_t
Get_Dis_Hour_Time
(
void
);
uint8_t
Get_Dis_Minute_Time
(
void
);
uint8_t
Get_Dis_Minute_Time
(
void
);
uint8_t
Get_Current_PageType
(
void
);
void
TYW_RESET_ODO
(
void
);
void
TYW_RESET_ODO
(
void
);
uint8_t
Get_Dis_Unit
(
void
);
uint8_t
Get_Dis_Unit
(
void
);
void
Key_
Check
_Service
(
void
);
void
Key_
TimeOut
_Service
(
void
);
void
Key_Clear_Time
(
void
);
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment