Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiancetai
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
陈家乐
jiancetai
Commits
0ea7fe8a
Commit
0ea7fe8a
authored
Jan 09, 2026
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加上下电按键
parent
3363934b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+8
-10
No files found.
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
0ea7fe8a
...
...
@@ -52,16 +52,14 @@ void Key_Operation_SW7(Key_Event_en_t enKeyEvent) //上下ACC电
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
// if(RELAY_KEY_MCU == 1)
// {
// RELAY_KEY_MCU = 0;
// }
// else
// {
// RELAY_KEY_MCU = 1;
// }
if
(
RELAY_KEY_MCU
==
1
)
{
RELAY_KEY_MCU
=
0
;
}
else
{
RELAY_KEY_MCU
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
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