Commit a19a977c authored by heyudong's avatar heyudong

🎈 perf:UUID贴字库改为贴图

parent d0c44957
...@@ -379,7 +379,7 @@ uint8_t Get_UUID_UDSStatus(void) ...@@ -379,7 +379,7 @@ uint8_t Get_UUID_UDSStatus(void)
{ {
for(uint8_t i=0;i<21;i++) for(uint8_t i=0;i<21;i++)
{ {
if(UUIDConfigBuf[i]!=0xFF) if(UUIDConfigBuf[i]!=0xFF)//UUIDConfigBuf[i] < 10
{ {
return 1; return 1;
} }
......
...@@ -52,5 +52,6 @@ extern uint8_t InformationMCUVersion[26]; ...@@ -52,5 +52,6 @@ extern uint8_t InformationMCUVersion[26];
extern uint8_t TextFaultCodeNum[10]; extern uint8_t TextFaultCodeNum[10];
extern uint8_t UUIDDisplay[42]; extern uint8_t UUIDDisplay[42];
extern TEXT_STRUCT TextPara[]; extern TEXT_STRUCT TextPara[];
extern uint8_t UUIDConfigBuf[21];
#endif #endif
\ No newline at end of file
...@@ -2755,6 +2755,30 @@ static const uint16_t NumbeList_PhoneConnect_VSpeed_NIGHT[] ={ ...@@ -2755,6 +2755,30 @@ static const uint16_t NumbeList_PhoneConnect_VSpeed_NIGHT[] ={
Pic_0977_484_509, Pic_0977_484_509,
Pic_0978_485_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[] = { static const uint16_t NumbeList_VSpeed_NIGHT[] = {
Pic_0702_456_256, Pic_0702_456_256,
Pic_0703_492_255, Pic_0703_492_255,
...@@ -5177,89 +5201,103 @@ void AMT630H_GUI_Display_OTA_Page_Information(void) ...@@ -5177,89 +5201,103 @@ void AMT630H_GUI_Display_OTA_Page_Information(void)
/*投屏区域*/ /*投屏区域*/
void AMT630H_GUI_Display_Navigation_Area(void) void AMT630H_GUI_Display_Navigation_Area(void)
{ {
PicObj.qr_logo_id = 0;//Pic_0234 小数字9 EA DISPLAY_NUM_ST DisplayNumPara;
PicObj.main_pic_id = Pic_0632; //转速红12 PicObj.qr_logo_id = 0;//Pic_0234 小数字9 EA
PicObj.qr_pic_id = Pic_0411;//红色小e 19B PicObj.main_pic_id = Pic_0632; //转速红12
PicObj.update_pic_id = Pic_0233;//小数字8 E9 PicObj.qr_pic_id = Pic_0411;//红色小e 19B
PicObj.second_menu = 0; PicObj.update_pic_id = Pic_0233;//小数字8 E9
PicObj.navigation_task_id = Pic_0411;//红色小e 19B PicObj.second_menu = 0;
if (GetPhoneMirrorst() == 0) PicObj.navigation_task_id = Pic_0411;//红色小e 19B
{ if (GetPhoneMirrorst() == 0)
if(g_u8Display_Mode == ModeDAY) {
{ //DISPLAY_NUM_ST DisplayNumPara;
SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0); DisplayNumPara.MinDigits=1;//位数
SetPagePic(GRAPHICS_PAGE_0, Pic_0476_0_0); /*上半屏*/ DisplayNumPara.NumInterval = GROUP_PIC_DIR_LEFT |13,//小数点后位数
SetPagePic(GRAPHICS_PAGE_0, Pic_0941_0_470); /*下半屏*/ DisplayNumPara.DecimalNum=0;//数字间距
DisplayNumPara.y = 252;//y坐标
SetPagePic(GRAPHICS_PAGE_0, Pic_0478_188_310); /*版本*/ if(g_u8Display_Mode == ModeDAY)
SetPagePic(GRAPHICS_PAGE_0, Pic_0491_188_343); /*状态*/ {
SetPagePic(GRAPHICS_PAGE_0, Pic_0494_410_144); SetPagePic(GRAPHICS_PAGE_0, Pic_0001_0_0);
SetPagePic(GRAPHICS_PAGE_0, Pic_0495_655_197); SetPagePic(GRAPHICS_PAGE_0, Pic_0476_0_0); /*上半屏*/
SetPagePic(GRAPHICS_PAGE_0, Pic_0496_410_197); SetPagePic(GRAPHICS_PAGE_0, Pic_0941_0_470); /*下半屏*/
SetPagePic(GRAPHICS_PAGE_0, Pic_0498_411_252); /*UUID*/
if(Get_UUID_UDSStatus() == 1) SetPagePic(GRAPHICS_PAGE_0, Pic_0478_188_310); /*版本*/
{ SetPagePic(GRAPHICS_PAGE_0, Pic_0491_188_343); /*状态*/
PackedTransfer_LabelsList( 0x4014,(uint8_t *)UUIDDisplay, 42); SetPagePic(GRAPHICS_PAGE_0, Pic_0494_410_144);
SetPageText(GRAPHICS_PAGE_0, 0x4014, 486, 248, 800, ALIGN_LEFT, 200, TEXT_COLOR(0,0,0,0XFF),TEXT_LINE_OFFSET(1,1)); SetPagePic(GRAPHICS_PAGE_0, Pic_0495_655_197);
} SetPagePic(GRAPHICS_PAGE_0, Pic_0496_410_197);
else 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); /*下半屏*/ }
if(g_u8Display_Mode == ModeNIGHT)
SetPagePic(GRAPHICS_PAGE_0, Pic_1015_188_310); /*版本*/ {
SetPagePic(GRAPHICS_PAGE_0, Pic_1028_188_343); /*状态*/ SetPagePic(GRAPHICS_PAGE_0, Pic_0382_0_0);
SetPagePic(GRAPHICS_PAGE_0, Pic_1031_410_144); SetPagePic(GRAPHICS_PAGE_0, Pic_1013_0_0); /*上半屏*/
SetPagePic(GRAPHICS_PAGE_0, Pic_1032_655_197); SetPagePic(GRAPHICS_PAGE_0, Pic_0952_0_470); /*下半屏*/
SetPagePic(GRAPHICS_PAGE_0, Pic_1033_410_197);
SetPagePic(GRAPHICS_PAGE_0, Pic_1035_411_252); /*UUID*/ SetPagePic(GRAPHICS_PAGE_0, Pic_1015_188_310); /*版本*/
if(Get_UUID_UDSStatus() == 1) SetPagePic(GRAPHICS_PAGE_0, Pic_1028_188_343); /*状态*/
{ SetPagePic(GRAPHICS_PAGE_0, Pic_1031_410_144);
PackedTransfer_LabelsList( 0x4014,(uint8_t *)UUIDDisplay, 42); SetPagePic(GRAPHICS_PAGE_0, Pic_1032_655_197);
SetPageText(GRAPHICS_PAGE_0, 0x4014, 486, 248, 800, ALIGN_LEFT, 200, TEXT_COLOR(0XFF,0XFF,0XFF,0XFF),TEXT_LINE_OFFSET(1,1)); SetPagePic(GRAPHICS_PAGE_0, Pic_1033_410_197);
} SetPagePic(GRAPHICS_PAGE_0, Pic_1035_411_252); /*UUID*/
else 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(/*已激活*/) // if(/*已激活*/)
// { // {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0492_243_344); // SetPagePic(GRAPHICS_PAGE_0, Pic_0492_243_344);
// } // }
// else // else
// { // {
// SetPagePic(GRAPHICS_PAGE_0, Pic_0493_242_344); // 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_0952_0_470); /*下半屏*/
{
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();
} }
PackedTransfer_DisplayPhoneMirrorQRcode(0, PicObj);
// AMT630H_GUI_PhoneConnect_UPtele();
}
} }
void AMT630H_GUI_PhoneConnect_Second_LowHalf(void) void AMT630H_GUI_PhoneConnect_Second_LowHalf(void)
......
...@@ -142,7 +142,13 @@ static const uint16_t PicIndexData[] = { ...@@ -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_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_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_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 #define PicIndexData_LEN 14888
//uint32_t PicIndexDataLEN = 0; //uint32_t PicIndexDataLEN = 0;
......
#ifndef PICBIN_H #ifndef PICBIN_H
#define PICBIN_H #define PICBIN_H
/* Flash Bin Version:20241014 2024-10-14 11:24:42 Compression ratio:70.00% */ /* Flash Bin Version:20241026 2024-10-26 11:42:28 Compression ratio:70.00% */
#define Pic_0001 1 #define Pic_0001 1
#define Pic_0002 2 #define Pic_0002 2
#define Pic_0003 3 #define Pic_0003 3
...@@ -1127,6 +1127,30 @@ ...@@ -1127,6 +1127,30 @@
#define Pic_1123 1123 #define Pic_1123 1123
#define Pic_1124 1124 #define Pic_1124 1124
#define Pic_1125 1125 #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 { enum {
Pic_0001_0_0 = 0, Pic_0001_0_0 = 0,
...@@ -2552,10 +2576,73 @@ enum { ...@@ -2552,10 +2576,73 @@ enum {
enum { enum {
Pic_1124_0_0 = 1400, Pic_1124_0_0 = 1400,
Pic_1125_0_0, 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 0x6862C54A
#define PIC_INDEX_DATA_CRC 0xC0A4A9AD
extern void User_PicIndexDataInit(void); extern void User_PicIndexDataInit(void);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment