Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
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
时昊
haoJin750TFT
Commits
d1086d26
Commit
d1086d26
authored
Nov 07, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:修复主题模式切换时不足1.5s的问题
parent
7134ed56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
BackLight.c
Firmware/Source/Application/BackLight.c
+10
-7
No files found.
Firmware/Source/Application/BackLight.c
View file @
d1086d26
...
...
@@ -7,7 +7,8 @@
Light_uint8_t
LightADCompleteFlg
=
0u
;
Light_uint16_t
LightR
=
0u
;
Light_uint16_t
LightR_Status
=
0
;
Light_uint16_t
LightR_Status_Count
=
0u
;
Light_uint16_t
LightR_Status_NCount
=
0u
;
Light_uint16_t
LightR_Status_DCount
=
0u
;
Light_uint16_t
NtcDataCount
;
Light_uint16_t
NtcData
[
LIGHT_DATA_NUM
]
=
{
0
};
typedef
struct
...
...
@@ -495,20 +496,22 @@ void BackLight_Process(void)
if
(
LightR
<=
200
)
{
LightR_Status_Count
++
;
if
(
LightR_Status_Count
>=
150
)
LightR_Status_
N
Count
++
;
if
(
LightR_Status_
N
Count
>=
150
)
{
LightR_Status_Count
=
0
;
LightR_Status_NCount
=
150
;
LightR_Status_DCount
=
0
;
LightR_Status
=
0
;
g_u8Display_Mode
=
ModeNIGHT
;
}
}
else
if
(
LightR
>
200
)
{
LightR_Status_Count
++
;
if
(
LightR_Status_Count
>=
150
)
LightR_Status_
D
Count
++
;
if
(
LightR_Status_
D
Count
>=
150
)
{
LightR_Status_Count
=
0
;
LightR_Status_DCount
=
150
;
LightR_Status_NCount
=
0
;
LightR_Status
=
1
;
g_u8Display_Mode
=
ModeDAY
;
}
...
...
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