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
19e2b1d7
Commit
19e2b1d7
authored
Dec 08, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加按键上下ACC电
parent
d83fa18d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
+21
-22
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+21
-22
No files found.
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
19e2b1d7
...
...
@@ -48,29 +48,28 @@ void Key_Operation_SW4(Key_Event_en_t enKeyEvent)
{
}
}
void
Key_Operation_SW7
(
Key_Event_en_t
enKeyEvent
)
void
Key_Operation_SW7
(
Key_Event_en_t
enKeyEvent
)
//上下ACC电
{
// if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
// {
// if(zhenduanflag != 2 && zhenduanflag != 3)
// {
// zhenduanflag = 2;
// }
// else
// {
// zhenduanflag = 0;
// }
// }
// else if ( enKeyEvent == KEY_EVENT_LONG_PRESS )
// {
// }
// else if ( enKeyEvent == KEY_EVENT_SUPER_LONG_PRESS )
// {
// }
// else
// {
// }
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
RELAY_KEY_MCU
==
1
)
{
RELAY_KEY_MCU
=
0
;
}
else
{
RELAY_KEY_MCU
=
1
;
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
}
else
{
}
}
//一键启动控制
void
Key_Operation_SW8
(
Key_Event_en_t
enKeyEvent
)
...
...
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