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
c903ee28
Commit
c903ee28
authored
Dec 09, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加边撑上下电
parent
8888a6dc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
4 deletions
+46
-4
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+25
-0
Display_Info.h
YueJin_test_bench/source/Appliciation/Display_Info.h
+2
-0
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+18
-4
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+1
-0
No files found.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
c903ee28
...
...
@@ -4668,3 +4668,28 @@ void RotationAlarm(void)
}
}
}
uint8_t
BCDD_MCU_Flag
;
uint8_t
BCDD_MCU_Time
;
void
BCDD_MCU_Service
(
void
)
{
if
(
BCDD_MCU_Flag
)
{
BCDD_MCU_Time
++
;
if
(
BCDD_MCU_Time
<=
50
)
{
BCDD_MCU
=
1
;
}
else
{
BCDD_MCU
=
0
;
BCDD_MCU_Time
=
0
;
BCDD_MCU_Flag
=
0
;
}
}
else
{
BCDD_MCU_Time
=
0
;
BCDD_MCU
=
0
;
}
}
\ No newline at end of file
YueJin_test_bench/source/Appliciation/Display_Info.h
View file @
c903ee28
...
...
@@ -83,6 +83,7 @@ extern void Buzzer_Init(void);
extern
void
Buzzer_Warning
(
void
);
extern
void
ONE_KEY_Display
(
void
);
extern
void
RotationAlarm
(
void
);
extern
void
BCDD_MCU_Service
(
void
);
void
GUI_General_Digit_Display
(
uint32_t
Digit
,
const
uint8_t
*
Font
[],
uint8_t
Len
,
uint8_t
Blank
,
const
uint16_t
*
px
,
uint16_t
y
);
void
GUI_Display_Version_Code_Service
(
uint8_t
StarX
,
uint16_t
PosY
,
uint8_t
*
Str
,
const
uint8_t
*
Version
[]
,
uint8_t
SpaceKeySize
);
...
...
@@ -103,4 +104,5 @@ extern const uint8_t *Num_15[];
#define PCodeText_Space_size 2//故障文字 英文空格的像素数
extern
uint8_t
CHECK_Value
;
extern
uint8_t
BCDD_MCU_Flag
;
#endif
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
c903ee28
...
...
@@ -25,13 +25,12 @@ void Key_Operation_SW5(Key_Event_en_t enKeyEvent)
}
}
//边撑
void
Key_Operation_SW4
(
Key_Event_en_t
enKeyEvent
)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
MENU_CHECK_STEP_SUB
();
CHECK_Ctrl_delay
=
0
;
CHECK_Value
=
0
;
BCDD_MCU_Flag
=
1
;
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
...
...
@@ -138,9 +137,24 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
}
}
//下一步
void
Key_Operation_SW1
(
Key_Event_en_t
enKeyEvent
)
{
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
MENU_CHECK_STEP_SUB
();
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
}
else
{
}
}
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
c903ee28
...
...
@@ -338,6 +338,7 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
Display_PageNum
();
ONE_KEY_Display
();
RotationAlarm
();
BCDD_MCU_Service
();
if
(
CHECK_Ctrl_delay
<
200
)
{
...
...
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