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
c14b132a
Commit
c14b132a
authored
Aug 15, 2024
by
陈家乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:55787 位置灯关联背光亮度,滤波时间不足500ms.取消软件滤波
parent
e0326156
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
BackLight.c
Firmware/Source/Application/BackLight/BackLight.c
+25
-24
No files found.
Firmware/Source/Application/BackLight/BackLight.c
View file @
c14b132a
...
@@ -23,31 +23,32 @@ void BackLight_Process(void)
...
@@ -23,31 +23,32 @@ void BackLight_Process(void)
{
{
if
(
SYS_OPR_STAT_IGN_ON
)
if
(
SYS_OPR_STAT_IGN_ON
)
{
{
//if (Line_In_Get_Status(LINE_IN_Little_Lamp))
//{
// if(LED_Turnon < 5)
// {
// LED_Turnon ++ ;
// }
// else
// {
// LED_Turnon = 5;
// LED_Turnoff = 0;
// }
//}
//else
//{
// if(LED_Turnoff < 5)
// {
// LED_Turnoff ++ ;
// }
// else
// {
// LED_Turnoff = 5;
// LED_Turnon = 0;
// }
//}
//if ( LED_Turnon == 5 )
if
(
Line_In_Get_Status
(
LINE_IN_Little_Lamp
))
if
(
Line_In_Get_Status
(
LINE_IN_Little_Lamp
))
{
if
(
LED_Turnon
<
5
)
{
LED_Turnon
++
;
}
else
{
LED_Turnon
=
5
;
LED_Turnoff
=
0
;
}
}
else
{
if
(
LED_Turnoff
<
5
)
{
LED_Turnoff
++
;
}
else
{
LED_Turnoff
=
5
;
LED_Turnon
=
0
;
}
}
if
(
LED_Turnon
==
5
)
{
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_NIGHT
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
BACK_LIGHT_NIGHT
);
}
}
...
...
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