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
70bb6dc5
Commit
70bb6dc5
authored
Oct 29, 2024
by
何宇东
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'heyudong_dev' into 'dev'
🎈
perf:UUID贴字库改为贴图 See merge request
!99
parents
d0c44957
a19a977c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
206 additions
and
74 deletions
+206
-74
BlueTooth.c
Firmware/Source/Application/BlueTooth.c
+1
-1
BlueTooth.h
Firmware/Source/Application/BlueTooth.h
+1
-0
AMT630H_Datas.c
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
+107
-69
PicBin.c
Firmware/Source/Component/AMT630H/PicBin.c
+7
-1
PicBin.h
Firmware/Source/Component/AMT630H/PicBin.h
+90
-3
No files found.
Firmware/Source/Application/BlueTooth.c
View file @
70bb6dc5
...
...
@@ -379,7 +379,7 @@ uint8_t Get_UUID_UDSStatus(void)
{
for
(
uint8_t
i
=
0
;
i
<
21
;
i
++
)
{
if
(
UUIDConfigBuf
[
i
]
!=
0xFF
)
if
(
UUIDConfigBuf
[
i
]
!=
0xFF
)
//UUIDConfigBuf[i] < 10
{
return
1
;
}
...
...
Firmware/Source/Application/BlueTooth.h
View file @
70bb6dc5
...
...
@@ -52,5 +52,6 @@ extern uint8_t InformationMCUVersion[26];
extern
uint8_t
TextFaultCodeNum
[
10
];
extern
uint8_t
UUIDDisplay
[
42
];
extern
TEXT_STRUCT
TextPara
[];
extern
uint8_t
UUIDConfigBuf
[
21
];
#endif
\ No newline at end of file
Firmware/Source/Component/AMT630H/AMT630H_Datas.c
View file @
70bb6dc5
...
...
@@ -2755,6 +2755,30 @@ static const uint16_t NumbeList_PhoneConnect_VSpeed_NIGHT[] ={
Pic_0977_484_509
,
Pic_0978_485_509
,
};
static
const
uint16_t
NumbeList_UUID_DAY
[]
=
{
Pic_1126_486_251
,
Pic_1127_487_252
,
Pic_1128_486_251
,
Pic_1129_485_251
,
Pic_1130_485_252
,
Pic_1131_485_252
,
Pic_1132_486_251
,
Pic_1133_486_252
,
Pic_1134_486_251
,
Pic_1135_486_251
,
};
static
const
uint16_t
NumbeList_UUID_NIGHT
[]
=
{
Pic_1139_486_251
,
Pic_1140_487_252
,
Pic_1141_486_251
,
Pic_1142_485_251
,
Pic_1143_485_252
,
Pic_1144_485_252
,
Pic_1145_486_251
,
Pic_1146_486_252
,
Pic_1147_486_251
,
Pic_1148_486_251
,
};
static
const
uint16_t
NumbeList_VSpeed_NIGHT
[]
=
{
Pic_0702_456_256
,
Pic_0703_492_255
,
...
...
@@ -5177,89 +5201,103 @@ void AMT630H_GUI_Display_OTA_Page_Information(void)
/*投屏区域*/
void
AMT630H_GUI_Display_Navigation_Area
(
void
)
{
PicObj
.
qr_logo_id
=
0
;
//Pic_0234 小数字9 EA
PicObj
.
main_pic_id
=
Pic_0632
;
//转速红12
PicObj
.
qr_pic_id
=
Pic_0411
;
//红色小e 19B
PicObj
.
update_pic_id
=
Pic_0233
;
//小数字8 E9
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
Pic_0411
;
//红色小e 19B
if
(
GetPhoneMirrorst
()
==
0
)
{
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0476_0_0
);
/*上半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0478_188_310
);
/*版本*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0491_188_343
);
/*状态*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0494_410_144
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0495_655_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0496_410_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0498_411_252
);
/*UUID*/
if
(
Get_UUID_UDSStatus
()
==
1
)
{
PackedTransfer_LabelsList
(
0x4014
,(
uint8_t
*
)
UUIDDisplay
,
42
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x4014
,
486
,
248
,
800
,
ALIGN_LEFT
,
200
,
TEXT_COLOR
(
0
,
0
,
0
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
else
DISPLAY_NUM_ST
DisplayNumPara
;
PicObj
.
qr_logo_id
=
0
;
//Pic_0234 小数字9 EA
PicObj
.
main_pic_id
=
Pic_0632
;
//转速红12
PicObj
.
qr_pic_id
=
Pic_0411
;
//红色小e 19B
PicObj
.
update_pic_id
=
Pic_0233
;
//小数字8 E9
PicObj
.
second_menu
=
0
;
PicObj
.
navigation_task_id
=
Pic_0411
;
//红色小e 19B
if
(
GetPhoneMirrorst
()
==
0
)
{
//DISPLAY_NUM_ST DisplayNumPara;
DisplayNumPara
.
MinDigits
=
1
;
//位数
DisplayNumPara
.
NumInterval
=
GROUP_PIC_DIR_LEFT
|
13
,
//小数点后位数
DisplayNumPara
.
DecimalNum
=
0
;
//数字间距
DisplayNumPara
.
y
=
252
;
//y坐标
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0001_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0476_0_0
);
/*上半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0478_188_310
);
/*版本*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0491_188_343
);
/*状态*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0494_410_144
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0495_655_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0496_410_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0498_411_252
);
/*UUID*/
if
(
Get_UUID_UDSStatus
()
==
1
)
{
DisplayNumPara
.
NumList
=
NumbeList_UUID_DAY
;
//数组
for
(
uint8_t
i
=
0
;
i
<
21
;
i
++
)
{
;
DisplayNumPara
.
x
=
786
-
i
*
15
;
//x坐标
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
UUIDConfigBuf
[
20
-
i
]);
}
}
if
(
g_u8Display_Mode
==
ModeNIGHT
)
else
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1013_0_0
);
/*上半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0952_0_470
);
/*下半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1015_188_310
);
/*版本*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1028_188_343
);
/*状态*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1031_410_144
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1032_655_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1033_410_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1035_411_252
);
/*UUID*/
if
(
Get_UUID_UDSStatus
()
==
1
)
{
PackedTransfer_LabelsList
(
0x4014
,(
uint8_t
*
)
UUIDDisplay
,
42
);
SetPageText
(
GRAPHICS_PAGE_0
,
0x4014
,
486
,
248
,
800
,
ALIGN_LEFT
,
200
,
TEXT_COLOR
(
0XFF
,
0XFF
,
0XFF
,
0XFF
),
TEXT_LINE_OFFSET
(
1
,
1
));
}
else
;
}
}
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0382_0_0
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1013_0_0
);
/*上半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0952_0_470
);
/*下半屏*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1015_188_310
);
/*版本*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1028_188_343
);
/*状态*/
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1031_410_144
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1032_655_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1033_410_197
);
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_1035_411_252
);
/*UUID*/
if
(
Get_UUID_UDSStatus
()
==
1
)
{
DisplayNumPara
.
NumList
=
NumbeList_UUID_NIGHT
;
//数组
for
(
uint8_t
i
=
0
;
i
<
21
;
i
++
)
{
;
DisplayNumPara
.
x
=
786
-
i
*
15
;
//x坐标
DisplayNum
(
GRAPHICS_PAGE_0
,
&
DisplayNumPara
,
UUIDConfigBuf
[
20
-
i
]);
}
}
else
{
;
}
}
// /*是否激活接口待补充*/
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
// if(/*已激活*/)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0492_243_344);
// }
// else
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0493_242_344);
// }
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
// /*是否激活接口待补充*/
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
// if(/*已激活*/)
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0492_243_344);
// }
// else
// {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0493_242_344);
// }
// /*!!!!!!!!!!!!别删!!!!!!!!!!!!*/
PackedTransfer_DisplayPhoneMirrorQRcode
(
1
,
PicObj
);
PackedTransfer_DisplayPhoneMirrorQRcode
(
1
,
PicObj
);
}
else
{
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
}
else
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
if
(
g_u8Display_Mode
==
ModeDAY
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0941_0_470
);
/*下半屏*/
}
if
(
g_u8Display_Mode
==
ModeNIGHT
)
{
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0952_0_470
);
/*下半屏*/
}
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
// AMT630H_GUI_PhoneConnect_UPtele();
SetPagePic
(
GRAPHICS_PAGE_0
,
Pic_0952_0_470
);
/*下半屏*/
}
PackedTransfer_DisplayPhoneMirrorQRcode
(
0
,
PicObj
);
// AMT630H_GUI_PhoneConnect_UPtele();
}
}
void
AMT630H_GUI_PhoneConnect_Second_LowHalf
(
void
)
...
...
Firmware/Source/Component/AMT630H/PicBin.c
View file @
70bb6dc5
...
...
@@ -142,7 +142,13 @@ static const uint16_t PicIndexData[] = {
Pic_1094
,
1040
,
0
,
0
,
Pic_1095
,
1040
,
0
,
0
,
Pic_1096
,
1040
,
0
,
0
,
Pic_1097
,
1040
,
0
,
0
,
Pic_1098
,
1040
,
0
,
0
,
Pic_1099
,
1040
,
0
,
0
,
Pic_1100
,
1040
,
0
,
0
,
Pic_1101
,
1040
,
0
,
0
,
Pic_1102
,
1040
,
0
,
0
,
Pic_1103
,
1040
,
0
,
0
,
Pic_1104
,
1040
,
0
,
0
,
Pic_1105
,
1040
,
0
,
0
,
Pic_1106
,
1040
,
0
,
0
,
Pic_1107
,
1040
,
0
,
0
,
Pic_1108
,
1040
,
0
,
0
,
Pic_1109
,
1040
,
0
,
0
,
Pic_1110
,
1040
,
0
,
0
,
Pic_1111
,
1040
,
0
,
0
,
Pic_1112
,
1040
,
0
,
0
,
Pic_1113
,
1040
,
0
,
0
,
Pic_1114
,
1040
,
0
,
0
,
Pic_1115
,
1040
,
0
,
0
,
Pic_1116
,
1040
,
0
,
0
,
Pic_1117
,
1040
,
0
,
0
,
Pic_1118
,
1040
,
0
,
0
,
Pic_1119
,
1040
,
0
,
0
,
Pic_1120
,
1040
,
0
,
0
,
Pic_1121
,
1040
,
0
,
0
,
Pic_1122
,
1040
,
0
,
0
,
Pic_1123
,
1040
,
0
,
0
,
Pic_1124
,
1040
,
0
,
0
,
Pic_1125
,
1040
,
0
,
0
,
Pic_1124
,
1040
,
0
,
0
,
Pic_1125
,
1040
,
0
,
0
,
Pic_1126
,
13
,
486
,
251
,
Pic_1126
,
13
,
501
,
251
,
Pic_1126
,
13
,
516
,
251
,
Pic_1126
,
13
,
531
,
251
,
Pic_1126
,
13
,
546
,
251
,
Pic_1126
,
13
,
561
,
251
,
Pic_1126
,
13
,
576
,
251
,
Pic_1126
,
13
,
591
,
251
,
Pic_1126
,
13
,
606
,
251
,
Pic_1126
,
13
,
621
,
251
,
Pic_1126
,
13
,
636
,
251
,
Pic_1126
,
13
,
651
,
251
,
Pic_1126
,
13
,
666
,
251
,
Pic_1126
,
13
,
681
,
251
,
Pic_1126
,
13
,
696
,
251
,
Pic_1126
,
13
,
711
,
251
,
Pic_1126
,
13
,
726
,
251
,
Pic_1126
,
13
,
741
,
251
,
Pic_1126
,
13
,
756
,
251
,
Pic_1126
,
13
,
771
,
251
,
Pic_1126
,
13
,
786
,
251
,
Pic_1127
,
12
,
487
,
252
,
Pic_1128
,
13
,
486
,
251
,
Pic_1129
,
14
,
485
,
251
,
Pic_1130
,
15
,
485
,
252
,
Pic_1131
,
14
,
485
,
252
,
Pic_1132
,
13
,
486
,
251
,
Pic_1133
,
13
,
486
,
252
,
Pic_1134
,
13
,
486
,
251
,
Pic_1135
,
13
,
486
,
251
,
Pic_1136
,
8
,
489
,
263
,
Pic_1137
,
52
,
632
,
551
,
Pic_1138
,
133
,
786
,
561
,
Pic_1139
,
13
,
486
,
251
,
Pic_1139
,
13
,
501
,
251
,
Pic_1139
,
13
,
516
,
251
,
Pic_1139
,
13
,
531
,
251
,
Pic_1139
,
13
,
546
,
251
,
Pic_1139
,
13
,
561
,
251
,
Pic_1139
,
13
,
576
,
251
,
Pic_1139
,
13
,
591
,
251
,
Pic_1139
,
13
,
606
,
251
,
Pic_1139
,
13
,
621
,
251
,
Pic_1139
,
13
,
636
,
251
,
Pic_1139
,
13
,
651
,
251
,
Pic_1139
,
13
,
666
,
251
,
Pic_1139
,
13
,
681
,
251
,
Pic_1139
,
13
,
696
,
251
,
Pic_1139
,
13
,
711
,
251
,
Pic_1139
,
13
,
726
,
251
,
Pic_1139
,
13
,
741
,
251
,
Pic_1139
,
13
,
756
,
251
,
Pic_1139
,
13
,
771
,
251
,
Pic_1139
,
13
,
786
,
251
,
Pic_1140
,
12
,
487
,
252
,
Pic_1141
,
13
,
486
,
251
,
Pic_1142
,
14
,
485
,
251
,
Pic_1143
,
15
,
485
,
252
,
Pic_1144
,
14
,
485
,
252
,
Pic_1145
,
13
,
486
,
251
,
Pic_1146
,
13
,
486
,
252
,
Pic_1147
,
13
,
486
,
251
,
Pic_1148
,
13
,
486
,
251
,
Pic_1149
,
8
,
489
,
263
,
};
#define PicIndexData_LEN 14888
//uint32_t PicIndexDataLEN = 0;
...
...
Firmware/Source/Component/AMT630H/PicBin.h
View file @
70bb6dc5
#ifndef PICBIN_H
#define PICBIN_H
/* Flash Bin Version:202410
14 2024-10-14 11:24:42
Compression ratio:70.00% */
/* Flash Bin Version:202410
26 2024-10-26 11:42:28
Compression ratio:70.00% */
#define Pic_0001 1
#define Pic_0002 2
#define Pic_0003 3
...
...
@@ -1127,6 +1127,30 @@
#define Pic_1123 1123
#define Pic_1124 1124
#define Pic_1125 1125
#define Pic_1126 1126
#define Pic_1127 1127
#define Pic_1128 1128
#define Pic_1129 1129
#define Pic_1130 1130
#define Pic_1131 1131
#define Pic_1132 1132
#define Pic_1133 1133
#define Pic_1134 1134
#define Pic_1135 1135
#define Pic_1136 1136
#define Pic_1137 1137
#define Pic_1138 1138
#define Pic_1139 1139
#define Pic_1140 1140
#define Pic_1141 1141
#define Pic_1142 1142
#define Pic_1143 1143
#define Pic_1144 1144
#define Pic_1145 1145
#define Pic_1146 1146
#define Pic_1147 1147
#define Pic_1148 1148
#define Pic_1149 1149
enum
{
Pic_0001_0_0
=
0
,
...
...
@@ -2552,10 +2576,73 @@ enum {
enum
{
Pic_1124_0_0
=
1400
,
Pic_1125_0_0
,
Pic_1126_486_251
,
Pic_1126_501_251
,
Pic_1126_516_251
,
Pic_1126_531_251
,
Pic_1126_546_251
,
Pic_1126_561_251
,
Pic_1126_576_251
,
Pic_1126_591_251
,
Pic_1126_606_251
,
Pic_1126_621_251
,
Pic_1126_636_251
,
Pic_1126_651_251
,
Pic_1126_666_251
,
Pic_1126_681_251
,
Pic_1126_696_251
,
Pic_1126_711_251
,
Pic_1126_726_251
,
Pic_1126_741_251
,
Pic_1126_756_251
,
Pic_1126_771_251
,
Pic_1126_786_251
,
Pic_1127_487_252
,
Pic_1128_486_251
,
Pic_1129_485_251
,
Pic_1130_485_252
,
Pic_1131_485_252
,
Pic_1132_486_251
,
Pic_1133_486_252
,
Pic_1134_486_251
,
Pic_1135_486_251
,
Pic_1136_489_263
,
Pic_1137_632_551
,
Pic_1138_786_561
,
Pic_1139_486_251
,
Pic_1139_501_251
,
Pic_1139_516_251
,
Pic_1139_531_251
,
Pic_1139_546_251
,
Pic_1139_561_251
,
Pic_1139_576_251
,
Pic_1139_591_251
,
Pic_1139_606_251
,
Pic_1139_621_251
,
Pic_1139_636_251
,
Pic_1139_651_251
,
Pic_1139_666_251
,
Pic_1139_681_251
,
Pic_1139_696_251
,
Pic_1139_711_251
,
Pic_1139_726_251
,
Pic_1139_741_251
,
Pic_1139_756_251
,
Pic_1139_771_251
,
Pic_1139_786_251
,
Pic_1140_487_252
,
Pic_1141_486_251
,
Pic_1142_485_251
,
Pic_1143_485_252
,
Pic_1144_485_252
,
Pic_1145_486_251
,
Pic_1146_486_252
,
Pic_1147_486_251
,
Pic_1148_486_251
,
Pic_1149_489_263
,
};
#define PIC_INDEX_DATA_CRC 0xC0A4A9AD
#define PIC_INDEX_DATA_CRC 0x6862C54A
extern
void
User_PicIndexDataInit
(
void
);
#endif
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