Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
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
ISUZU
VC66_7C
Commits
7443c284
Commit
7443c284
authored
Nov 16, 2021
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加界面
parent
2e05d602
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23231 additions
and
22904 deletions
+23231
-22904
project
ghs/project
+0
-0
project.hex
ghs/project.hex
+22812
-22722
project.siz
ghs/project.siz
+1
-1
GUI.c
source/Application/Graphic/GUI/GUI.c
+357
-181
GUI.h
source/Application/Graphic/GUI/GUI.h
+61
-0
No files found.
ghs/project
View file @
7443c284
No preview for this file type
ghs/project.hex
View file @
7443c284
This source diff could not be displayed because it is too large. You can
view the blob
instead.
ghs/project.siz
View file @
7443c284
project .intvect 1536
project .text 3
07260
project .text 3
10124
project .rodata 410879
project .secinfo 120
project .syscall 6
...
...
source/Application/Graphic/GUI/GUI.c
View file @
7443c284
...
...
@@ -30,6 +30,9 @@
uint32_t
HYQ_TEST
=
3
;
volatile
_Display_State_Flag
State_Flag
;
_TPMS
TPMS_Matching
;
_UserSet
User_set_Num
;
_UserSet
User_App
;
/*-------------------------------------------------------------------------
* Function Name : GUI_Display_KL15_ON_Init
...
...
@@ -2667,7 +2670,7 @@ void GUI_BG_Errot_Display(uint8_t Mode)
* Input : None
* Output : None
* Return : None
* onther : 区域 K_Line_Set.
Sig.
K_Line_LID3E
* onther : 区域 K_Line_Set.K_Line_LID3E
--------------------------------------------------------------------------*/
void
GUI_BG_TPMS_GasPIC_Display
(
uint8_t
Mode
)
{
...
...
@@ -2720,7 +2723,7 @@ void GUI_BG_TPMS_GasPIC_Display(uint8_t Mode)
* Input : None
* Output : None
* Return : None
* onther : 区域 K_Line_Set.
Sig.
K_Line_LID3E
* onther : 区域 K_Line_Set.K_Line_LID3E
--------------------------------------------------------------------------*/
void
GUI_BG_TPMS_TempPIC_Display
(
uint8_t
Mode
)
{
...
...
@@ -2771,7 +2774,7 @@ void GUI_BG_TPMS_TempPIC_Display(uint8_t Mode)
* Input : None
* Output : None
* Return : None
* onther : 区域 K_Line_Set.
Sig.
K_Line_LID3E
* onther : 区域 K_Line_Set.K_Line_LID3E
--------------------------------------------------------------------------*/
void
GUI_BG_TPMS_GasNUM_Display
(
uint8_t
Mode
)
{
...
...
@@ -2815,7 +2818,7 @@ void GUI_BG_TPMS_GasNUM_Display(uint8_t Mode)
* Input : None
* Output : None
* Return : None
* onther : 区域 K_Line_Set.
Sig.
K_Line_LID3E
* onther : 区域 K_Line_Set.K_Line_LID3E
--------------------------------------------------------------------------*/
void
GUI_BG_TPMS_TempNUM_Display
(
uint8_t
Mode
)
{
...
...
@@ -3554,391 +3557,564 @@ void GUI_BG_TPMS_PictureSet_Display(uint8_t Mode)
{
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_che
,
GUI_BLENDMODE_SRC_OVER
);
/*车*/
/
/0x12
/
*0x12*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x12
,
GUI_BLENDMODE_SRC_OVER
);
/*0x12*/
//if (User_set_Num.User_Tpms == 1)
if
(
1
)
if
(
User_set_Num
.
User_Tpms
==
1u
)
{
//if (User_set_Num.User_TpmsStatus == 1)
if
(
0
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_
SRC_OVER
);
//0x12
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_
CUSTOM
);
}
else
if
(
1
)
//(User_set_Num.User_TpmsStatus == 2
)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_SRC_OVER
);
//0x12
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_SRC_OVER
);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
//if (TPMS_Matching.Sig.T01 == 1)
if
(
1
)
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_SRC_OVER
);
//0x12
if
(
TPMS_Matching
.
T01
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_SRC_OVER
);
//0x12
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
//if (TPMS_Matching.Sig.T01 == 1)
if
(
1
)
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_SRC_OVER
);
//0x12
if
(
TPMS_Matching
.
T01
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_SRC_OVER
);
//0x12
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
#if 0
//0x13
if (User_set_Num.User_Tpms == 2)
/*0x13*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x13
,
GUI_BLENDMODE_SRC_OVER
);
/*0x13*/
if
(
User_set_Num
.
User_Tpms
==
2u
)
{
if (User_set_Num.User_TpmsStatus == 1)
if
(
User_set_Num
.
User_TpmsStatus
==
1
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_2, SN_TPMS_Tyre_Green_png, 187, 26, 64); //0x13
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_2, SN_TPMS_Tyre_Yellow_png, 187, 26, 64); //0x13
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 174, 12, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T02 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_2, SN_TPMS_Tyre_Yellow_png, 187, 26, 64); //0x13
if
(
TPMS_Matching
.
T02
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_2, SN_TPMS_Tyre_Grey_png, 187, 26, 64); //0x13
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T02 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_2, SN_TPMS_Tyre_Yellow_png, 187, 26, 64); //0x13
if
(
TPMS_Matching
.
T02
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_2, SN_TPMS_Tyre_Grey_png, 187, 26, 64); //0x13
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
0u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x22
if (User_set_Num.User_Tpms == 3)
/*0x22*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x22
,
GUI_BLENDMODE_SRC_OVER
);
/*0x22*/
if
(
User_set_Num
.
User_Tpms
==
3u
)
{
if (User_set_Num.User_TpmsStatus == 1)
if
(
User_set_Num
.
User_TpmsStatus
==
1
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_3, SN_TPMS_Tyre_Green_png, 244, 125, 64); //0x22
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_3, SN_TPMS_Tyre_Yellow_png, 244, 125, 64); //0x22
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 231, 112, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T03 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_3, SN_TPMS_Tyre_Yellow_png, 244, 125, 64); //0x22
if
(
TPMS_Matching
.
T03
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_3, SN_TPMS_Tyre_Grey_png, 244, 125, 64); //0x22
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T03 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_3, SN_TPMS_Tyre_Yellow_png, 244, 125, 64); //0x22
if
(
TPMS_Matching
.
T03
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_3, SN_TPMS_Tyre_Grey_png, 244, 125, 64); //0x22
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x23
if (User_set_Num.User_Tpms == 4)
/*0x23*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x23
,
GUI_BLENDMODE_SRC_OVER
);
/*0x23*/
if
(
User_set_Num
.
User_Tpms
==
4u
)
{
if (User_set_Num.User_TpmsStatus == 1)
if
(
User_set_Num
.
User_TpmsStatus
==
1
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_4, SN_TPMS_Tyre_Green_png, 244, 26, 64); //0x23
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_4, SN_TPMS_Tyre_Yellow_png, 244, 26, 64); //0x23
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 231, 12, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T04 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_4, SN_TPMS_Tyre_Yellow_png, 244, 26, 64); //0x23
if
(
TPMS_Matching
.
T04
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_4, SN_TPMS_Tyre_Grey_png, 244, 26, 64); //0x23
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T04 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_4, SN_TPMS_Tyre_Yellow_png, 244, 26, 64); //0x23
if
(
TPMS_Matching
.
T04
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_4, SN_TPMS_Tyre_Grey_png, 244, 26, 64); //0x23
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
1u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x31
if (User_set_Num.User_Tpms == 5)
/*0x31*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x31
,
GUI_BLENDMODE_SRC_OVER
);
/*0x31*/
if
(
User_set_Num
.
User_Tpms
==
5u
)
{
if (User_set_Num.User_TpmsStatus == 1)
if
(
User_set_Num
.
User_TpmsStatus
==
1
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_5 , SN_TPMS_Tyre_Green_png, 323, 125, 64); //0x31
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_5 , SN_TPMS_Tyre_Yellow_png, 323, 125, 64); //0x31
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 310, 112, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T05 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_5 , SN_TPMS_Tyre_Yellow_png, 323, 125, 64); //0x31
if
(
TPMS_Matching
.
T05
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_5 , SN_TPMS_Tyre_Grey_png, 323, 125, 64); //0x31
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T05 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_5 , SN_TPMS_Tyre_Yellow_png, 323, 125, 64); //0x31
if
(
TPMS_Matching
.
T05
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_5 , SN_TPMS_Tyre_Grey_png, 323, 125, 64); //0x31
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x32
if (User_set_Num.User_Tpms == 6)
/*0x32*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x32
,
GUI_BLENDMODE_SRC_OVER
);
/*0x32*/
if
(
User_set_Num
.
User_Tpms
==
6u
)
{
if (
User_set_Num.User_TpmsStatus == 1
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_6 , SN_TPMS_Tyre_Green_png, 323, 109, 64); //0x32
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (
User_set_Num.User_TpmsStatus == 2
)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_6 , SN_TPMS_Tyre_Yellow_png, 323, 109, 64); //0x32
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 310, 96, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T06 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_6 , SN_TPMS_Tyre_Yellow_png, 323, 109, 64); //0x32
if
(
TPMS_Matching
.
T06
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_6 , SN_TPMS_Tyre_Grey_png, 323, 109, 64); //0x32
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T06 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_6 , SN_TPMS_Tyre_Yellow_png, 323, 109, 64); //0x32
if
(
TPMS_Matching
.
T06
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_6 , SN_TPMS_Tyre_Grey_png, 323, 109, 64); //0x32
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x33
if (User_set_Num.User_Tpms == 7)
/*0x33*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x33
,
GUI_BLENDMODE_SRC_OVER
);
/*0x33*/
if
(
User_set_Num
.
User_Tpms
==
7u
)
{
if (
User_set_Num.User_TpmsStatus == 1
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_7 , SN_TPMS_Tyre_Green_png, 323, 42, 64); //0x33
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (
User_set_Num.User_TpmsStatus == 2
)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_7 , SN_TPMS_Tyre_Yellow_png, 323, 42, 64); //0x33
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 310, 28, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T07 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_7 , SN_TPMS_Tyre_Yellow_png, 323, 42, 64); //0x33
if
(
TPMS_Matching
.
T07
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_7 , SN_TPMS_Tyre_Grey_png, 323, 42, 64); //0x33
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T07 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_7 , SN_TPMS_Tyre_Yellow_png, 323, 42, 64); //0x33
if
(
TPMS_Matching
.
T07
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_7 , SN_TPMS_Tyre_Grey_png, 323, 42, 64); //0x33
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x34
if (User_set_Num.User_Tpms == 8)
/*0x34*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x34
,
GUI_BLENDMODE_SRC_OVER
);
/*0x34*/
if
(
User_set_Num
.
User_Tpms
==
8u
)
{
if (
User_set_Num.User_TpmsStatus == 1
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_8 , SN_TPMS_Tyre_Green_png, 323, 26, 64); //0x34
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_8 , SN_TPMS_Tyre_Yellow_png, 323, 26, 64); //0x34
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 310, 12, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T08 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_8 , SN_TPMS_Tyre_Yellow_png, 323, 26, 64); //0x34
if
(
TPMS_Matching
.
T08
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_8 , SN_TPMS_Tyre_Grey_png, 323, 26, 64); //0x34
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T08 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_8 , SN_TPMS_Tyre_Yellow_png, 323, 26, 64); //0x34
if
(
TPMS_Matching
.
T08
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_8 , SN_TPMS_Tyre_Grey_png, 323, 26, 64); //0x34
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
2u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x41
if (User_set_Num.User_Tpms == 9)
/*0x41*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x41
,
GUI_BLENDMODE_SRC_OVER
);
/*0x41*/
if
(
User_set_Num
.
User_Tpms
==
9u
)
{
if (
User_set_Num.User_TpmsStatus == 1
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_9, SN_TPMS_Tyre_Green_png, 372, 125, 64); //0x41
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (
User_set_Num.User_TpmsStatus == 2
)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_9, SN_TPMS_Tyre_Yellow_png, 372, 125, 64); //0x41
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 359, 112, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T09 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_9, SN_TPMS_Tyre_Yellow_png, 372, 125, 64); //0x41
if
(
TPMS_Matching
.
T09
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_9, SN_TPMS_Tyre_Grey_png, 372, 125, 64); //0x41
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T09 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_9, SN_TPMS_Tyre_Yellow_png, 372, 125, 64); //0x41
if
(
TPMS_Matching
.
T09
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_9, SN_TPMS_Tyre_Grey_png, 372, 125, 64); //0x41
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
3u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x42
if (User_set_Num.User_Tpms == 10)
/*0x42*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x42
,
GUI_BLENDMODE_SRC_OVER
);
/*0x42*/
if
(
User_set_Num
.
User_Tpms
==
10u
)
{
if (
User_set_Num.User_TpmsStatus == 1
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_10, SN_TPMS_Tyre_Green_png, 372, 109, 64); //0x42
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_10, SN_TPMS_Tyre_Yellow_png, 372, 109, 64); //0x42
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 359, 96, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T10 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_10, SN_TPMS_Tyre_Yellow_png, 372, 109, 64); //0x42
if
(
TPMS_Matching
.
T10
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_10, SN_TPMS_Tyre_Grey_png, 372, 109, 64); //0x42
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T10 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_10, SN_TPMS_Tyre_Yellow_png, 372, 109, 64); //0x42
if
(
TPMS_Matching
.
T10
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_10, SN_TPMS_Tyre_Grey_png, 372, 109, 64); //0x42
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
2u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x43
if (User_set_Num.User_Tpms == 11)
/*0x43*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x43
,
GUI_BLENDMODE_SRC_OVER
);
/*0x43*/
if
(
User_set_Num
.
User_Tpms
==
11u
)
{
if (
User_set_Num.User_TpmsStatus == 1
)
if
(
User_set_Num
.
User_TpmsStatus
==
1u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_11, SN_TPMS_Tyre_Green_png, 372, 42, 64); //0x43
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (
User_set_Num.User_TpmsStatus == 2
)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_11, SN_TPMS_Tyre_Yellow_png, 372, 42, 64); //0x43
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 359, 28, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T11 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_11, SN_TPMS_Tyre_Yellow_png, 372, 42, 64); //0x43
if
(
TPMS_Matching
.
T11
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_11, SN_TPMS_Tyre_Grey_png, 372, 42, 64); //0x43
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T11 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_11, SN_TPMS_Tyre_Yellow_png, 372, 42, 64); //0x43
if
(
TPMS_Matching
.
T11
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_11, SN_TPMS_Tyre_Grey_png, 372, 42, 64); //0x43
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
1u
],
GUI_BLENDMODE_CUSTOM
);
}
}
//0x44
if (User_set_Num.User_Tpms == 12)
/*0x44*/
GUI_General_Display
(
MENU_Sprite
,
CN_User_Menu3_03_0x44
,
GUI_BLENDMODE_SRC_OVER
);
/*0x44*/
if
(
User_set_Num
.
User_Tpms
==
12u
)
{
if (User_set_Num.User_TpmsStatus == 1)
if
(
User_set_Num
.
User_TpmsStatus
==
1
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_12, SN_TPMS_Tyre_Green_png, 372, 26, 64); //0x44
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai3
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else if (User_set_Num.User_TpmsStatus == 2)
else
if
(
User_set_Num
.
User_TpmsStatus
==
2
u
)
{
TFT_LCD_Display_Sprite(LAYER_G3_D2_12, SN_TPMS_Tyre_Yellow_png, 372, 26, 64); //0x44
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
if
(
FLASH_SYNC_1Hz
)
TFT_LCD_Display_Sprite(LAYER_G3_D3_1, SN_TPMS_Tyrelight_png, 359, 12, 64);
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai_guang
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_CUSTOM
);
}
}
else
{
if (TPMS_Matching.Sig.T12 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_12, SN_TPMS_Tyre_Yellow_png, 372, 26, 64); //0x44
if
(
TPMS_Matching
.
T12
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_12, SN_TPMS_Tyre_Grey_png, 372, 26, 64); //0x44
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
}
else
{
if (TPMS_Matching.Sig.T12 == 1)
TFT_LCD_Display_Sprite(LAYER_G3_D2_12, SN_TPMS_Tyre_Yellow_png, 372, 26, 64); //0x44
if
(
TPMS_Matching
.
T12
==
1u
)
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai1
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
else
TFT_LCD_Display_Sprite(LAYER_G3_D2_12, SN_TPMS_Tyre_Grey_png, 372, 26, 64); //0x44
{
GUI_Translate_Display
(
MENU_Sprite
,
CN_User_Menu3_03_luntai2
,
GUI_TPMS_PIC_X
[
3u
],
GUI_TPMS_PIC_Y
[
0u
],
GUI_BLENDMODE_CUSTOM
);
}
}
/
/Çå³ýÉÁ˸ͼ²ã
/
*清楚闪烁*/
if
(
User_set_Num
.
User_TpmsStatus
!=
2
)
TFT_LCD_Clear_Layer(LAYER_G3_D3_1);
{
GUI_General_Display
(
MENU_Sprite
,
SpriteSize
,
GUI_BLENDMODE_SRC_OVER
);
}
//Çå³ýÆäÓàËùÓв»ÓÃͼ²ã
TFT_LCD_Clear_Multi_Layer(LAYER_G3_D3_2, YVC_LYR_NUM_CPU - 2);
#endif
}
else
{
...
...
source/Application/Graphic/GUI/GUI.h
View file @
7443c284
...
...
@@ -61,6 +61,67 @@ typedef struct
}
_Display_State_Flag
;
extern
volatile
_Display_State_Flag
State_Flag
;
typedef
struct
{
uint16_t
Year
;
uint8_t
Month
;
uint8_t
Date
;
uint8_t
Hour
;
uint8_t
Minute
;
uint8_t
SetDate
;
/* 设置日期标识*/
uint8_t
SetTime
;
/* 设置解耦睡觉哦考吗脑婆睡觉哦*/
uint8_t
Language
;
/* 当前语言标识*/
uint8_t
LeapYear
;
/* 设置闰年标识*/
uint8_t
User_Gsl
;
/* 速度设定-高速路*/
uint8_t
User_Ybl
;
/* 速度设定-一般路*/
uint8_t
User_Speed
;
/* 发动机转速设定*/
uint8_t
User_JADD
;
/* 急加速设定*/
uint8_t
User_JSUB
;
/* 急减速设定*/
uint8_t
User_Date
;
/* 日期设置格式切换标识*/
uint8_t
User_Time
;
/* 时间设置格式切换标识*/
uint8_t
Date_Time
;
/* 显示时间日期标识*/
uint8_t
Date_Format
;
/* 显示日期格式标识*/
uint8_t
Time_Format
;
/* 显示时间格式标识*/
uint8_t
User_HSASET
;
/* HSA调整*/
uint8_t
User_Language
;
/* 语言设置*/
uint8_t
User_Company
;
/* 单位设定*/
uint8_t
User_Light
;
/* 亮度调节*/
uint8_t
User_CarJL
;
/* 车间距离报警*/
uint32_t
User_FDJYLQQ
;
/* 发送机油 0 未设定 1-50000 数值*/
uint32_t
User_RYLQQ
;
/* 燃油滤清器 0 未设定 1-50000 数值*/
uint32_t
User_BSXY
;
/* 变速箱油 */
uint32_t
User_CSQY
;
/* 差速器油*/
uint32_t
User_KQGZJ
;
/* 空气干燥剂*/
uint32_t
User_DLZXY
;
/* 动力转向油*/
uint32_t
User_LT
;
/* 轮胎*/
uint32_t
User_QDJ
;
/* 起动机*/
uint8_t
User_Tpms
;
/* 当前是哪个轮子 0-12*/
uint8_t
User_TpmsStatus
;
/* 当前胎压匹配界面 0 胎压未配置状态, 1 轮胎选中界面, 2 轮胎正在配置*/
uint8_t
User_Temp_Return
;
/* 取消胎压配置 0 1 取消配对标记*/
uint8_t
User_TpmsSend
;
/* 胎压匹配报文发送请求次数3 0 不发*/
}
_UserSet
;
extern
_UserSet
User_set_Num
;
extern
_UserSet
User_App
;
typedef
struct
{
uint8_t
T01
;
uint8_t
T02
;
uint8_t
T03
;
uint8_t
T04
;
uint8_t
T05
;
uint8_t
T06
;
uint8_t
T07
;
uint8_t
T08
;
uint8_t
T09
;
uint8_t
T10
;
uint8_t
T11
;
uint8_t
T12
;
uint8_t
FLAG
;
}
_TPMS
;
extern
_TPMS
TPMS_Matching
;
static
const
uint32_t
GUIWedk
[
7u
]
=
{
CN_xingqiyi
,
CN_xingqier
,
CN_xingqisan
,
CN_xingqisi
,
CN_xingqiwu
,
CN_xingqiliu
,
CN_xingqiri
};
static
const
uint32_t
GUIMenuWedk
[
7u
]
=
{
CN_Mon
,
CN_Tue
,
CN_Wed
,
CN_Thu
,
CN_Fri
,
CN_Sat
,
CN_ri
};
...
...
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