Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
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
TY
TianYing_ty100
Commits
d7d3db1d
Commit
d7d3db1d
authored
May 11, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:更改长按按键为3~9s
parent
890aaf87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+8
-8
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
d7d3db1d
...
...
@@ -130,11 +130,11 @@ void Key_KL30_Init_EXample(void)
Key_KL30_Init
(
&
u8KeyRamData
[
0
],
stKeyAttribute
,
&
stKeyInitTem
);
Key_Parameter_Set_Short_Press_1_Time
(
50U
,
1000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
5
000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
9
000U
);
Key_Parameter_Set_Long_Press_1_Time
(
7000U
);
Key_Parameter_Set_Long_Press_2_Time
(
8000U
);
Key_Parameter_Set_Long_Press_3_Time
(
9000U
);
//
Key_Parameter_Set_Long_Press_1_Time(7000U);
//
Key_Parameter_Set_Long_Press_2_Time(8000U);
//
Key_Parameter_Set_Long_Press_3_Time(9000U);
Key_Parameter_Set_Long_Press_4_Time
(
10000U
);
}
void
Key_Wakeup_Init_EXample
(
void
)
...
...
@@ -146,11 +146,11 @@ void Key_Wakeup_Init_EXample(void)
Key_Wakeup_Init
(
&
u8KeyRamData
[
0
],
stKeyAttribute
,
&
stKeyInitTem
);
Key_Parameter_Set_Short_Press_1_Time
(
50U
,
1000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
5
000U
);
Key_Parameter_Set_Short_Press_2_Time
(
3000U
,
9
000U
);
Key_Parameter_Set_Long_Press_1_Time
(
7000U
);
Key_Parameter_Set_Long_Press_2_Time
(
8000U
);
Key_Parameter_Set_Long_Press_3_Time
(
9000U
);
//
Key_Parameter_Set_Long_Press_1_Time(7000U);
//
Key_Parameter_Set_Long_Press_2_Time(8000U);
//
Key_Parameter_Set_Long_Press_3_Time(9000U);
Key_Parameter_Set_Long_Press_4_Time
(
10000U
);
}
...
...
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