Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
IVECO_NS216
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
时昊
IVECO_NS216
Commits
bfcb8b08
Commit
bfcb8b08
authored
Oct 10, 2024
by
梁百峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:白天,夜间亮度显示等级条,分别显示
parent
0b97e47d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
41 deletions
+94
-41
GUI.c
source/Appliciation/Display/GUI.c
+94
-41
No files found.
source/Appliciation/Display/GUI.c
View file @
bfcb8b08
...
...
@@ -4067,51 +4067,104 @@ void Gui_Backlight(INT8U Backlight)
{
Draw_Image_Local
((
uint8_t
*
)
Set_icon_01_X103_Y76
,
103
,
76
);
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_X85_Y128
,
85
,
128
);
if
(
g_Light
.
Duty
==
0
)
if
((
Get_TelltalesLedSts
(
m_LED_Park_Lamp
)
==
1
)
||
(
Get_TelltalesLedSts
(
m_LED_High_Lamp
)
==
1
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_1_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_0_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
150
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_2_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_1_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
200
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_3_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_2_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
250
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_4_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_3_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
300
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_5_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_4_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
350
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_6_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_5_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
400
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_7_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_6_X0_Y0
,
114
,
191
);
}
else
if
(
g_Light
.
Duty
==
450
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_8_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_7_X0_Y0
,
114
,
191
);
if
((
g_nightLight
.
Duty
==
0
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_1_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_0_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
100
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_2_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_1_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
200
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_3_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_2_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
250
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_4_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_3_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
300
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_5_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_4_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
350
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_6_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_5_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
400
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_7_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_6_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
450
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_8_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_7_X0_Y0
,
114
,
191
);
}
else
if
((
g_nightLight
.
Duty
==
500
)
)
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_9_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_8_X0_Y0
,
114
,
191
);
}
}
else
if
(
g_Light
.
Duty
==
500
)
else
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_9_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_8_X0_Y0
,
114
,
191
);
if
(
(
g_Light
.
Duty
==
0
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_1_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_0_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
100
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_2_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_1_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
200
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_3_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_2_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
250
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_4_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_3_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
300
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_5_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_4_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
350
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_6_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_5_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
400
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_7_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_6_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
450
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_8_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_7_X0_Y0
,
114
,
191
);
}
else
if
(
(
g_Light
.
Duty
==
500
))
{
Draw_Image_Local
((
uint8_t
*
)
Set_CN_01_9_X35_Y169
,
35
,
169
);
Draw_Image_Local
((
uint8_t
*
)
Number_18_White_8_X0_Y0
,
114
,
191
);
}
}
}
/***********************************************************************************************************/
void
Gui_Volume
(
INT8U
Volume
)
...
...
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