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
c2c98826
Commit
c2c98826
authored
Dec 08, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加自动大灯开启关闭按键
parent
19e2b1d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
Key_user.c
YueJin_test_bench/source/Appliciation/Key_user.c
+10
-5
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+4
-1
R485_Communication_Matrix.h
...est_bench/source/Appliciation/R485_Communication_Matrix.h
+8
-9
No files found.
YueJin_test_bench/source/Appliciation/Key_user.c
View file @
c2c98826
...
...
@@ -116,17 +116,22 @@ void Key_Operation_SW3(Key_Event_en_t enKeyEvent)
{
if
(
enKeyEvent
==
KEY_EVENT_SHORT_PRESS
)
{
if
(
BCMLED
.
Sig
.
AutoLamp
)
{
BCMLED
.
Sig
.
AutoLamp
=
0x00
;
}
else
{
BCMLED
.
Sig
.
AutoLamp
=
0x01
;
//自动大灯开启
}
}
else
if
(
enKeyEvent
==
KEY_EVENT_LONG_PRESS
)
{
}
else
if
(
enKeyEvent
==
KEY_EVENT_SUPER_LONG_PRESS
)
{
if
(
Get_Display_Type
(
)
==
2
)
{
MENU_CHECK_STEP_SUB
(
);
}
}
else
{
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
c2c98826
...
...
@@ -1108,7 +1108,6 @@ uint32_t R485_Send_test(void)
case
0
:
BCMLED
.
Sig
.
Lamp
=
0x01
;
//左转
BCMLED
.
Sig
.
FlickerFrequency
=
0x05
;
//频率
u32sendendflag
=
R485_Send
(
0x09
,
BCMLED
.
Msg
,
sizeof
(
BCMLED
.
Msg
));
// Dashboard.Sig.textbit2 = 0x0A; //车速
// Dashboard.Sig.textbit7 = 0x7F; //P档
...
...
@@ -1116,6 +1115,8 @@ uint32_t R485_Send_test(void)
break
;
case
1
:
BCMLED
.
Sig
.
Lamp
=
0x00
;
//左转
BCMLED
.
Sig
.
FlickerFrequency
=
0x00
;
//频率
break
;
case
2
:
...
...
@@ -1152,5 +1153,7 @@ uint32_t R485_Send_test(void)
break
;
}
u32sendendflag
=
R485_Send
(
0x09
,
BCMLED
.
Msg
,
sizeof
(
BCMLED
.
Msg
));
return
u32sendendflag
;
}
\ No newline at end of file
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.h
View file @
c2c98826
...
...
@@ -1107,16 +1107,15 @@ typedef union
uint8_t
Msg
[
7
];
struct
{
uint8_t
text1
:
8
;
uint8_t
text2
:
8
;
uint8_t
text3
:
8
;
uint8_t
text
4
:
8
;
uint8_t
text
5
:
8
;
uint8_t
Lamp
:
4
;
uint8_t
text1
:
8
;
uint8_t
HLLamp
:
7
;
uint8_t
AutoLamp
:
1
;
uint8_t
text
3
:
8
;
uint8_t
text
4
:
8
;
uint8_t
text5
:
8
;
uint8_t
Lamp
:
4
;
uint8_t
FlickerFrequency
:
4
;
uint8_t
text7
:
8
;
uint8_t
text7
:
8
;
}
Sig
;
}
_BCMLED
;
...
...
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