Commit d08ff987 authored by 王佳伟's avatar 王佳伟

feat:增加一部分显示

parent 30678992
......@@ -11,6 +11,8 @@
#include "TimerB.h"
#include "Analog_Signals.h"
#include "FreIn_User.h"
#include "Key.h"
#include "CAN_APP.h"
// clang-format off
uint32_t Display_Menu_Type;
uint32_t Page_Refresh = 1;
......@@ -2911,36 +2913,78 @@ uint32_t Get_Display_Type(void)
uint8_t Check_StepsAxis[2] ={250,240};;
uint8_t Check_VspeeedAxis[2] = {165,155};
void Display_PageNum(void)
{
uint32_t PageNum_current = 0;
uint8_t p[4];
PageNum_current = Get_Display_Type();
Display_Num(200,20,Check_Steps,100);//步骤
Display_Num(200,20,Check_Steps,100);//步骤
}
uint16_t Display_Time = 0;
void Display_Num(uint16_t StartX, uint16_t StartY,uint16_t m_NUM,uint8_t CbkCycle)
{
uint16_t Num = 0;
uint16_t TempNum = 0;
uint16_t TempX = 0;
uint16_t TempCount = 0;
TempNum = m_NUM;
Num = m_NUM;
TempX = StartX;
if (PageNum_history != PageNum_current)
Display_Time += CbkCycle;
if(Display_Time >= 1000)
{
PageNum_history = PageNum_current;
Page_Refresh = 1;
Display_Time = 0;
for(;TempNum !=0 && TempCount <4; TempCount++)
{
TempNum /= 10;
}
//千位
Num = (uint16_t)((m_NUM / 1000u) % 10u);
if((TempCount == 4)&&(Num > 0))
{
TempX = TempX-10;
TFT_LCD_Draw_Bmp(TempX, StartY, ( uint8_t * )FONT_TABLE_15 [ Num ]);
}
//百位
Num = (uint16_t)((m_NUM / 100u) % 10u);
if(TempCount == 4)
{
TempX = TempX-10;
TFT_LCD_Draw_Bmp(TempX, StartY, ( uint8_t * )FONT_TABLE_15 [ Num ]);
if (0)//想刷2位还是1位数字?
}
else
{
if((TempCount == 3)&&(Num>0))
{
p [0] = (PageNum_current % 100) / 10;
p [1] = (PageNum_current % 10) / 1;
p [2] = (0xff);
TempX = TempX-10;
TFT_LCD_Draw_Bmp(TempX, StartY, ( uint8_t * )FONT_TABLE_15 [ Num ]);
}
}
//十位
Num = (uint16_t)((m_NUM / 10u) % 10u);
if(TempCount > 2)
{
TempX = TempX-10;
TFT_LCD_Draw_Bmp(TempX, StartY, ( uint8_t * )FONT_TABLE_15 [ Num ]);
}
else
{
p [0] = (PageNum_current % 10) / 1;
p [1] = (0xff);
if((TempCount == 2)&&(Num>0))
{
TempX = TempX-10;
TFT_LCD_Draw_Bmp(TempX, StartY, ( uint8_t * )FONT_TABLE_15 [ Num ]);
}
}
General_Number_Disp(p, 3, 10);
//个位
Num = (uint16_t)(m_NUM % 10u);
TempX = StartX;
TFT_LCD_Draw_Bmp(TempX, StartY, ( uint8_t * )FONT_TABLE_15 [ Num ]);
}
}
}
void SW_Version__Display(void)
{
uint8_t pbuff [ 40 ];
......@@ -3766,12 +3810,12 @@ void Display_Version_Info(uint32_t ON_OFF)
if((nowbanbenhao == R485_ID4Dh.Sig.ESP322) && (nowbanbenhaohoumian == R485_ID4Dh.Sig.ESP321) && (nowbanbenhao == R485_ID4Dh.Sig.G0312) && (nowbanbenhaohoumian == R485_ID4Dh.Sig.G0311))
{
TFT_LCD_Draw_Bmp(200, 90+25+25+30+25+30+30, ( uint8_t * )gImage_dui ); //软件版本号对比 对
firstpowerflag = 2;
//firstpowerflag = 2;
}
else
{
TFT_LCD_Draw_Bmp(200, 90+25+25+30+25+30+30, ( uint8_t * )gImage_cuo ); //软件版本号对比 错
firstpowerflag = 3;
//firstpowerflag = 3;
MENU_CHECK_STEP = 0;
//正在调试取消版本号对比 想要取消版本号对比将上方注释掉并解开下方注释即可
// TFT_LCD_Draw_Bmp(200, 90+25+25+30+25+30+30, ( uint8_t * )gImage_dui ); //软件版本号对比 对
......@@ -3898,22 +3942,22 @@ void Display_Set_Buff(void)
uint8_t CAN_SIG_LOST_10FF1017 = 0;
uint8_t CAN_SIG_LOST_10FF4117 = 0;
CAN_SIG_LOST_10FF1017 = CAN_MSG_Status (CAN_CH0_ID_Send10FF1017_Msg_Count);
CAN_SIG_LOST_10FF4117 = CAN_MSG_Status (CAN_CH0_ID_Send10FF4117_Msg_Count);
//LHParkTaiLightSts = Get_CAN_CH0_ID_10FF1017_Sig_LHParkTailLightSts();
//RHParkTaiLightSts = Get_CAN_CH0_ID_10FF1017_Sig_RHParkTailLightSts();
FrontFogLightSts = Get_CAN_CH0_ID_10FF1017_Sig_FrontFogLightSts();
RearFogLightSts = Get_CAN_CH0_ID_10FF1017_Sig_RearFogLightSts();
LowBeamSts = Get_CAN_CH0_ID_10FF1017_Sig_LowBeamSts();
HighBeamSts = Get_CAN_CH0_ID_10FF1017_Sig_HighBeamSts();
HeatedMirrorSts = Get_CAN_CH0_ID_10FF1017_Sig_HeatedMirrorSts();
HandBrakeSts = Get_ID_HandBrakeSts();
//BackUPSts = Get_CAN_CH0_ID_10FF4117_Sig_BackUPSts();
Seatbeltsts = Get_CAN_CH0_ID_10FF4117_Sig_Seatbeltsts();
LampFailSts = Get_CAN_CH0_ID_10FF4117_Sig_IC_HCSPS_LampFailSts();
// CAN_SIG_LOST_10FF1017 = CAN_MSG_Status (CAN_CH0_ID_Send10FF1017_Msg_Count);
// CAN_SIG_LOST_10FF4117 = CAN_MSG_Status (CAN_CH0_ID_Send10FF4117_Msg_Count);
loc_Type = Get_Display_Type( );
// //LHParkTaiLightSts = Get_CAN_CH0_ID_10FF1017_Sig_LHParkTailLightSts();
// //RHParkTaiLightSts = Get_CAN_CH0_ID_10FF1017_Sig_RHParkTailLightSts();
// FrontFogLightSts = Get_CAN_CH0_ID_10FF1017_Sig_FrontFogLightSts();
// RearFogLightSts = Get_CAN_CH0_ID_10FF1017_Sig_RearFogLightSts();
// LowBeamSts = Get_CAN_CH0_ID_10FF1017_Sig_LowBeamSts();
// HighBeamSts = Get_CAN_CH0_ID_10FF1017_Sig_HighBeamSts();
// HeatedMirrorSts = Get_CAN_CH0_ID_10FF1017_Sig_HeatedMirrorSts();
// HandBrakeSts = Get_ID_HandBrakeSts();
// //BackUPSts = Get_CAN_CH0_ID_10FF4117_Sig_BackUPSts();
// Seatbeltsts = Get_CAN_CH0_ID_10FF4117_Sig_Seatbeltsts();
// LampFailSts = Get_CAN_CH0_ID_10FF4117_Sig_IC_HCSPS_LampFailSts();
// loc_Type = Get_Display_Type( );
if ( loc_Type_back2 != loc_Type )
{
......@@ -3922,38 +3966,38 @@ void Display_Set_Buff(void)
loc_Type_back2 = loc_Type;
}
if (
(CAN_SIG_LOST_10FF4117_Back != CAN_SIG_LOST_10FF4117) ||
(CAN_SIG_LOST_10FF1017_Back != CAN_SIG_LOST_10FF1017) ||
(HandBrakeSts_Back != HandBrakeSts ) ||
//(BackUPSts_Back != BackUPSts ) ||
(Seatbeltsts_Back != Seatbeltsts ) ||
(LampFailSts_Back != LampFailSts ) ||
//(RHParkTaiLightSts_Back != LHParkTaiLightSts ) ||
//(LHParkTaiLightSts_Back != RHParkTaiLightSts ) ||
(HighBeamSts_Back != FrontFogLightSts ) ||
(LowBeamSts_Back != RearFogLightSts ) ||
(FrontFogLightSts_Back != LowBeamSts ) ||
(RearFogLightSts_Back != HighBeamSts ) ||
(HeatedMirrorSts_Back != HeatedMirrorSts )
)
{
CAN_SIG_LOST_10FF4117_Back = CAN_SIG_LOST_10FF4117 ;
CAN_SIG_LOST_10FF1017_Back = CAN_SIG_LOST_10FF1017 ;
HandBrakeSts_Back = HandBrakeSts ;
//BackUPSts_Back = BackUPSts ;
Seatbeltsts_Back = Seatbeltsts ;
LampFailSts_Back = LampFailSts ;
//RHParkTaiLightSts_Back = LHParkTaiLightSts ;
//LHParkTaiLightSts_Back = RHParkTaiLightSts ;
HighBeamSts_Back = FrontFogLightSts ;
LowBeamSts_Back = RearFogLightSts ;
FrontFogLightSts_Back = LowBeamSts ;
RearFogLightSts_Back = HighBeamSts ;
HeatedMirrorSts_Back = HeatedMirrorSts ;
Refresh = 1 ;
}
// if (
// (CAN_SIG_LOST_10FF4117_Back != CAN_SIG_LOST_10FF4117) ||
// (CAN_SIG_LOST_10FF1017_Back != CAN_SIG_LOST_10FF1017) ||
// (HandBrakeSts_Back != HandBrakeSts ) ||
// //(BackUPSts_Back != BackUPSts ) ||
// (Seatbeltsts_Back != Seatbeltsts ) ||
// (LampFailSts_Back != LampFailSts ) ||
// //(RHParkTaiLightSts_Back != LHParkTaiLightSts ) ||
// //(LHParkTaiLightSts_Back != RHParkTaiLightSts ) ||
// (HighBeamSts_Back != FrontFogLightSts ) ||
// (LowBeamSts_Back != RearFogLightSts ) ||
// (FrontFogLightSts_Back != LowBeamSts ) ||
// (RearFogLightSts_Back != HighBeamSts ) ||
// (HeatedMirrorSts_Back != HeatedMirrorSts )
// )
// {
// CAN_SIG_LOST_10FF4117_Back = CAN_SIG_LOST_10FF4117 ;
// CAN_SIG_LOST_10FF1017_Back = CAN_SIG_LOST_10FF1017 ;
// HandBrakeSts_Back = HandBrakeSts ;
// //BackUPSts_Back = BackUPSts ;
// Seatbeltsts_Back = Seatbeltsts ;
// LampFailSts_Back = LampFailSts ;
// //RHParkTaiLightSts_Back = LHParkTaiLightSts ;
// //LHParkTaiLightSts_Back = RHParkTaiLightSts ;
// HighBeamSts_Back = FrontFogLightSts ;
// LowBeamSts_Back = RearFogLightSts ;
// FrontFogLightSts_Back = LowBeamSts ;
// RearFogLightSts_Back = HighBeamSts ;
// HeatedMirrorSts_Back = HeatedMirrorSts ;
// Refresh = 1 ;
// }
else {;}
if ( Refresh == 1 )
{
......@@ -3974,140 +4018,140 @@ void Display_Set_Buff(void)
TFT_LCD_Draw_Bmp(3, 215, ( uint8_t * )gImage_Dsy_words_11X6_Y287); //HeatedMirrorSts
}
if ( CAN_SIG_LOST_10FF4117 == CAN_SIG_LOST )
{
TFT_LCD_Draw_Box(175, 40, 239, 140, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// if ( CAN_SIG_LOST_10FF4117 == CAN_SIG_LOST )
// {
// TFT_LCD_Draw_Box(175, 40, 239, 140, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
TFT_LCD_Draw_Bmp(180, 90, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
//TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
else
{
// TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// TFT_LCD_Draw_Bmp(180, 90, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// //TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// else
// {
TFT_LCD_Draw_Box(175, 40, 239, 140, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// TFT_LCD_Draw_Box(175, 40, 239, 140, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
if ( HandBrakeSts == 1 )
{
TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
Display_Menu_Type = 3;
}
else
{
TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
// if ( HandBrakeSts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// Display_Menu_Type = 3;
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
//if ( BackUPSts == 1 )
//{
// //if ( BackUPSts == 1 )
// //{
// // TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// // Display_Menu_Type = 3;
// //}
// //else
// //{
// // TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// //}
// if ( Seatbeltsts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// Display_Menu_Type = 3;
//}
//else
//{
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
//}
if ( Seatbeltsts == 1 )
{
TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
Display_Menu_Type = 3;
}
else
{
TFT_LCD_Draw_Bmp(180, 65, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
if ( LampFailSts == 2 )
{
TFT_LCD_Draw_Bmp(180, 90, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
Display_Menu_Type = 3;
}
else
{
TFT_LCD_Draw_Bmp(180, 90, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
}
if ( CAN_SIG_LOST_10FF1017 == CAN_SIG_LOST )
{
TFT_LCD_Draw_Box(175, 115, 239, 300, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
TFT_LCD_Draw_Bmp(180, 190, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
TFT_LCD_Draw_Bmp(180, 215, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
//TFT_LCD_Draw_Bmp(180, 265, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
//TFT_LCD_Draw_Bmp(180, 290, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
else
{
TFT_LCD_Draw_Box(175, 115, 239, 300, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
//if ( LHParkTaiLightSts == 1 )
//{
// TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
//}
//else
//{
// TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
//}
//
//if ( RHParkTaiLightSts == 1 )
//{
// TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
//}
//else
//{
// TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
//}
if ( FrontFogLightSts == 1 )
{
TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
}
else
{
TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
if ( RearFogLightSts == 1 )
{
TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
}
else
{
TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
// }
if ( LowBeamSts == 1 )
{
TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
}
else
{
TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
// if ( LampFailSts == 2 )
// {
// TFT_LCD_Draw_Bmp(180, 90, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// Display_Menu_Type = 3;
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 90, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
if ( HighBeamSts == 1 )
{
TFT_LCD_Draw_Bmp(180, 190, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
}
else
{
TFT_LCD_Draw_Bmp(180, 190, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
if ( HeatedMirrorSts == 1 )
{
TFT_LCD_Draw_Bmp(180, 215, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
}
else
{
TFT_LCD_Draw_Bmp(180, 215, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
}
}
// }
// if ( CAN_SIG_LOST_10FF1017 == CAN_SIG_LOST )
// {
// TFT_LCD_Draw_Box(175, 115, 239, 300, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// TFT_LCD_Draw_Bmp(180, 190, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// TFT_LCD_Draw_Bmp(180, 215, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// //TFT_LCD_Draw_Bmp(180, 265, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// //TFT_LCD_Draw_Bmp(180, 290, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// else
// {
// TFT_LCD_Draw_Box(175, 115, 239, 300, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// //if ( LHParkTaiLightSts == 1 )
// //{
// // TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// //}
// //else
// //{
// // TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// //}
// //
// //if ( RHParkTaiLightSts == 1 )
// //{
// // TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// //}
// //else
// //{
// // TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// //}
// if ( FrontFogLightSts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 115, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// if ( RearFogLightSts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 140, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// if ( LowBeamSts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 165, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// if ( HighBeamSts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 190, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 190, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// if ( HeatedMirrorSts == 1 )
// {
// TFT_LCD_Draw_Bmp(180, 215, ( uint8_t * )gImage_Dsy_words_13X0_Y0);
// }
// else
// {
// TFT_LCD_Draw_Bmp(180, 215, ( uint8_t * )gImage_Dsy_words_12X0_Y0);
// }
// }
}
}
......@@ -4137,13 +4181,13 @@ void Display_Send_ODO(uint8_t fuel)
CAN_SIG_LOST_18FEC1EE = CAN_MSG_Status (CAN_CH0_ID_Send18FEC1EE_Msg_Count);
CAN_SIG_LOST_0CFE6CEE = CAN_MSG_Status (CAN_CH0_ID_Send0CFE6CEE_Msg_Count);
CAN_SIG_LOST_18FEFC17 = CAN_MSG_Status (CAN_CH0_ID_Send18FEFC17_Msg_Count);
// CAN_SIG_LOST_18FEC1EE = CAN_MSG_Status (CAN_CH0_ID_Send18FEC1EE_Msg_Count);
// CAN_SIG_LOST_0CFE6CEE = CAN_MSG_Status (CAN_CH0_ID_Send0CFE6CEE_Msg_Count);
// CAN_SIG_LOST_18FEFC17 = CAN_MSG_Status (CAN_CH0_ID_Send18FEFC17_Msg_Count);
odo_val = Get_ID_ODO();
VSpeed_val = Get_ID_VSpeed();
Fuel_val = Get_ID_FUEL();
//odo_val = Get_ID_ODO();
//VSpeed_val = Get_ID_VSpeed();
//Fuel_val = Get_ID_FUEL();
loc_Type = Get_Display_Type( );
......@@ -4154,24 +4198,24 @@ void Display_Send_ODO(uint8_t fuel)
loc_Type_back = loc_Type;
}
if (
(CAN_SIG_LOST_18FEC1EE_Back != CAN_SIG_LOST_18FEC1EE) ||
(CAN_SIG_LOST_0CFE6CEE_Back != CAN_SIG_LOST_0CFE6CEE) ||
(CAN_SIG_LOST_18FEFC17_Back != CAN_SIG_LOST_18FEFC17) ||
(odo_val_Back != odo_val ) ||
(VSpeed_Back != VSpeed_val ) ||
(Fuel_Back != Fuel_val )
)
{
CAN_SIG_LOST_18FEC1EE_Back = CAN_SIG_LOST_18FEC1EE ;
CAN_SIG_LOST_0CFE6CEE_Back = CAN_SIG_LOST_0CFE6CEE ;
CAN_SIG_LOST_18FEFC17_Back = CAN_SIG_LOST_18FEFC17 ;
odo_val_Back = odo_val ;
VSpeed_Back = VSpeed_val ;
Fuel_Back = Fuel_val ;
Refresh_ODO = 1 ;
}
// if (
// (CAN_SIG_LOST_18FEC1EE_Back != CAN_SIG_LOST_18FEC1EE) ||
// (CAN_SIG_LOST_0CFE6CEE_Back != CAN_SIG_LOST_0CFE6CEE) ||
// (CAN_SIG_LOST_18FEFC17_Back != CAN_SIG_LOST_18FEFC17) ||
// (odo_val_Back != odo_val ) ||
// (VSpeed_Back != VSpeed_val ) ||
// (Fuel_Back != Fuel_val )
// )
// {
// CAN_SIG_LOST_18FEC1EE_Back = CAN_SIG_LOST_18FEC1EE ;
// CAN_SIG_LOST_0CFE6CEE_Back = CAN_SIG_LOST_0CFE6CEE ;
// CAN_SIG_LOST_18FEFC17_Back = CAN_SIG_LOST_18FEFC17 ;
// odo_val_Back = odo_val ;
// VSpeed_Back = VSpeed_val ;
// Fuel_Back = Fuel_val ;
// Refresh_ODO = 1 ;
// }
if (Refresh_ODO)
{
Refresh_ODO = 0;
......@@ -4190,41 +4234,41 @@ void Display_Send_ODO(uint8_t fuel)
}
if ( CAN_SIG_LOST_18FEC1EE == CAN_SIG_LOST )
{
TFT_LCD_Draw_Box(115, 70, 165, 100, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// if ( CAN_SIG_LOST_18FEC1EE == CAN_SIG_LOST )
// {
// TFT_LCD_Draw_Box(115, 70, 165, 100, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
else
{
TFT_LCD_Draw_Box(115, 70, 165, 100, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
GUI_General_Digit_Display(odo_val, Num_15, 6, 5, ODODigitNum09PosX, 70);
}
// }
// else
// {
// TFT_LCD_Draw_Box(115, 70, 165, 100, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// GUI_General_Digit_Display(odo_val, Num_15, 6, 5, ODODigitNum09PosX, 70);
// }
if ( CAN_SIG_LOST_0CFE6CEE == CAN_SIG_LOST )
{
TFT_LCD_Draw_Box(115, 100, 165, 130, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// if ( CAN_SIG_LOST_0CFE6CEE == CAN_SIG_LOST )
// {
// TFT_LCD_Draw_Box(115, 100, 165, 130, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
else
{
TFT_LCD_Draw_Box(115, 100, 165, 130, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
GUI_General_Digit_Display(VSpeed_val, Num_15, 6, 5, ODODigitNum09PosX, 100);
}
// }
// else
// {
// TFT_LCD_Draw_Box(115, 100, 165, 130, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// GUI_General_Digit_Display(VSpeed_val, Num_15, 6, 5, ODODigitNum09PosX, 100);
// }
if (fuel == 1)
{
if ( CAN_SIG_LOST_18FEFC17 == CAN_SIG_LOST )
{
TFT_LCD_Draw_Box(115, 130, 165, 160, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// if (fuel == 1)
// {
// if ( CAN_SIG_LOST_18FEFC17 == CAN_SIG_LOST )
// {
// TFT_LCD_Draw_Box(115, 130, 165, 160, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
}
else
{
TFT_LCD_Draw_Box(115, 130, 165, 160, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
GUI_General_Digit_Display(Fuel_val, Num_15, 6, 5, ODODigitNum09PosX, 130);
}
}
// }
// else
// {
// TFT_LCD_Draw_Box(115, 130, 165, 160, TFT_LCD_FILL_FULL, TFT_LCD_TYPE_CLR);
// GUI_General_Digit_Display(Fuel_val, Num_15, 6, 5, ODODigitNum09PosX, 130);
// }
// }
}
......@@ -4234,370 +4278,370 @@ void Display_Send_ODO(uint8_t fuel)
void Display_Send_Vspead(uint8_t menu)
{
uint8_t fuel_val = 0;
static uint8_t Type_Clear = 0;
uint8_t VSpeed_val = 0;
// static uint8_t Type_Clear_FLAG = 0;
if ( (Type_Clear != menu ))
{
Type_Clear = menu;
Display_TFT_Clear();
}
if(menu > 0)
{
if(menu < 13 )
{
TFT_LCD_Draw_Bmp(3, 40, ( uint8_t * )gImage_Dey_words_1X6_Y16);
TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dey_words_5X195_Y16);
TFT_LCD_Draw_Bmp(3, 40+25, ( uint8_t * )gImage_Dey_words_4X6_Y107);
TFT_LCD_Draw_Bmp(180, 40+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_checkComX6_Y165);
}
if(CurrentWrong == 1)
{
MENU_CHECK_STEP = 13;
}
else
{
;
}
switch (menu)
{
case 1:
fuel_val = 1;
VSpeed_val = 0;
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_Powerlow1X6_Y16);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_READY1X6_Y16);
TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_LowBean1X6_Y16);
TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
// GUI_Display_Version_Code_Service(160, 40+25+25, "FREE", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "0", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "1", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_General_Digit_Display(0, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "10kW", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// uint8_t fuel_val = 0;
// static uint8_t Type_Clear = 0;
// uint8_t VSpeed_val = 0;
// // static uint8_t Type_Clear_FLAG = 0;
// if ( (Type_Clear != menu ))
// {
// Type_Clear = menu;
// Display_TFT_Clear();
// }
// if(menu > 0)
// {
// if(menu < 13 )
// {
// TFT_LCD_Draw_Bmp(3, 40, ( uint8_t * )gImage_Dey_words_1X6_Y16);
// TFT_LCD_Draw_Bmp(180, 40, ( uint8_t * )gImage_Dey_words_5X195_Y16);
// TFT_LCD_Draw_Bmp(3, 40+25, ( uint8_t * )gImage_Dey_words_4X6_Y107);
// TFT_LCD_Draw_Bmp(180, 40+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_checkComX6_Y165);
// }
// if(CurrentWrong == 1)
// {
// MENU_CHECK_STEP = 13;
// }
// else
// {
// ;
// }
// switch (menu)
// {
// case 1:
// fuel_val = 1;
// VSpeed_val = 0;
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_Powerlow1X6_Y16);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_READY1X6_Y16);
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_LowBean1X6_Y16);
// TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_blueX6_Y165);
// TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_F);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_R);
// TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_E);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_E);
// // GUI_Display_Version_Code_Service(160, 40+25+25, "FREE", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "0", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25, "1", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "00-00", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
// TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
// GUI_General_Digit_Display(0, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25, "10kW", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
break;
case 2:
TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_orange1X6_Y16);
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_turnLeft1X6_Y16);
TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_highBeanX6_Y165);
// GUI_Display_Version_Code_Service(160, 40, "11", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "15", Letter_Num_11, PCodeText_Space_size);
fuel_val = 15;
VSpeed_val = 11;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_S);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_P);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_O);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_R);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_T);
// GUI_Display_Version_Code_Service(160, 40+25+25, "SPORT", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "50kW", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_General_Digit_Display(50, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "11-11", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
break;
case 3:
TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_greenX6_Y165);
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_turnRight1X6_Y16);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_AutoX6_Y165);
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_position1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40, "22", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "22", Letter_Num_11, PCodeText_Space_size);
fuel_val = 22;
VSpeed_val = 22;
// GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_T);
TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_T);
TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_F);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_A);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_R);
// GUI_Display_Version_Code_Service(160, 40+25+25, "TTFAR", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "100kW", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_General_Digit_Display(100, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "22-22", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_2);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
//光感值先注释掉
// GUI_General_Digit_Display(lightnumber, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+25+25+25+25+25+25);
if(Light_Out == 0)
{
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_AutoX6_Y165);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_dui11 );
}
else
{
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_cuo11 );
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "00-00", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
}
break;
case 4:
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_BianchengX6_Y165);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_Alarm_12_xhX6_Y165);
TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_superT1X6_Y16);
// break;
// case 2:
// TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_orange1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40, "33", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25, "33", Letter_Num_11, PCodeText_Space_size);
fuel_val = 33;
VSpeed_val = 33;
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "13-33", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_turnLeft1X6_Y16);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_highBeanX6_Y165);
// // GUI_Display_Version_Code_Service(160, 40, "11", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25, "15", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 15;
// VSpeed_val = 11;
// // GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_S);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_P);
// TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_O);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_R);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_T);
// // GUI_Display_Version_Code_Service(160, 40+25+25, "SPORT", Letter_Num_11, PCodeText_Space_size);
break;
case 5:
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_seattong1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40+25, "44", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "44", Letter_Num_11, PCodeText_Space_size);
fuel_val = 44;
VSpeed_val = 44;
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "1", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_G);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25, "50kW", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "-10", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "14-44", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
break;
case 6:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_seat1X6_Y16);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_doupoX6_Y165);
// GUI_Display_Version_Code_Service(160, 40+25, "55", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "55", Letter_Num_11, PCodeText_Space_size);
fuel_val = 55;
VSpeed_val = 55;
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "5", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
GUI_Display_Version_Code_Service(155, 40+25+25+25, "-50", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "15-55", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
break;
case 7:
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_ABSX6_Y165);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_xiangonglv1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40+25, "66", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "66", Letter_Num_11, PCodeText_Space_size);
fuel_val = 66;
VSpeed_val = 66;
// GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25, "10", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
GUI_Display_Version_Code_Service(145, 40+25+25+25, "-100", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "16-06", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_6);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_6);
break;
case 8:
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_bluetoothX6_Y165);
TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_zcguzhang1X6_Y16);
// GUI_Display_Version_Code_Service(160, 40+25, "77", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "77", Letter_Num_11, PCodeText_Space_size);
fuel_val = 77;
VSpeed_val = 77;
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "17-07", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_7);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_7);
// TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
// GUI_General_Digit_Display(50, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "11-11", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// break;
// case 3:
// TFT_LCD_Draw_Bmp(160, 40+25+25+25+25, ( uint8_t * )gImage_gImage_greenX6_Y165);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_turnRight1X6_Y16);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_AutoX6_Y165);
// // TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_position1X6_Y16);
// // GUI_Display_Version_Code_Service(160, 40, "22", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25, "22", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 22;
// VSpeed_val = 22;
// // GUI_Display_Version_Code_Service(3, 40+25+25, "DM", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25, ( uint8_t * )NO_T);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25, ( uint8_t * )NO_T);
// TFT_LCD_Draw_Bmp(140+18+18, 40+25+25, ( uint8_t * )NO_F);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25, ( uint8_t * )NO_A);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25, ( uint8_t * )NO_R);
// // GUI_Display_Version_Code_Service(160, 40+25+25, "TTFAR", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25, "Power", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25, "100kW", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
// TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
// GUI_General_Digit_Display(100, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "22-22", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_2);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// //光感值先注释掉
// // GUI_General_Digit_Display(lightnumber, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+25+25+25+25+25+25);
// if(Light_Out == 0)
// {
// // TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_AutoX6_Y165);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_dui11 );
// }
// else
// {
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25+25, ( uint8_t * )gImage_cuo11 );
break;
case 9:
// GUI_Display_Version_Code_Service(160, 40+25, "88", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "88", Letter_Num_11, PCodeText_Space_size);
fuel_val = 88;
VSpeed_val = 88;
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "18-08", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_8);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_8);
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_lowPower1X6_Y16);
break;
case 10:
// GUI_Display_Version_Code_Service(160, 40+25, "99", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
fuel_val = 99;
VSpeed_val = 99;
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "19-09", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_9);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_9);
GUI_Display_Version_Code_Service(70, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
break;
case 11:
// GUI_Display_Version_Code_Service(160, 40+25, "100", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
fuel_val = 100;
VSpeed_val = 99;
// GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "00-00", Letter_Num_11, PCodeText_Space_size);
TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
GUI_Display_Version_Code_Service(70, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
break;
case 12:
TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_bluetoothX6_Y165);
break;
case 13:
// POWER_CTRL_KL30 = 0u; //B+
// POWER_CTRL_KL15 = 0u; //KL15
CAN_Msg_Tx_Enable = 0u;
//Diag_Info_Init( );
//Display_Init( );
//Display_Version_Info(0);
//Send_Init();
//Send_ODO_Init();
HW_Static_Current_Check(1);
break;
case 14:
GUI_Display_Version_Code_Service(25, 20, "Please enter password ", Letter_Num_11, PCodeText_Space_size);
break;
case 15:
// }
// break;
// case 4:
// TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_BianchengX6_Y165);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_Alarm_12_xhX6_Y165);
// TFT_LCD_Draw_Bmp(150, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_superT1X6_Y16);
// // GUI_Display_Version_Code_Service(160, 40, "33", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25, "33", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 33;
// VSpeed_val = 33;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "13-33", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_3);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// break;
// case 5:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_seattong1X6_Y16);
// // GUI_Display_Version_Code_Service(160, 40+25, "44", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "44", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 44;
// VSpeed_val = 44;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25, "1", Letter_Num_11, PCodeText_Space_size);
// // TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_G);
// // TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_K);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
// GUI_Display_Version_Code_Service(155, 40+25+25+25, "-10", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "14-44", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_4);
// break;
// case 6:
// // TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_seat1X6_Y16);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_doupoX6_Y165);
// // GUI_Display_Version_Code_Service(160, 40+25, "55", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "55", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 55;
// VSpeed_val = 55;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25, "5", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
// GUI_Display_Version_Code_Service(155, 40+25+25+25, "-50", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "15-55", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_5);
// break;
// case 7:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_ABSX6_Y165);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_xiangonglv1X6_Y16);
// // GUI_Display_Version_Code_Service(160, 40+25, "66", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "66", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 66;
// VSpeed_val = 66;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25, "ePower", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25, "10", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(180, 40+25+25+25, ( uint8_t * )NO_W);
// TFT_LCD_Draw_Bmp(180+25, 40+25+25+25, ( uint8_t * )gImage_Dey_words_8X224_Y107);
// GUI_Display_Version_Code_Service(145, 40+25+25+25, "-100", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "16-06", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_6);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_6);
// break;
// case 8:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_bluetoothX6_Y165);
// TFT_LCD_Draw_Bmp(70, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_zcguzhang1X6_Y16);
// // GUI_Display_Version_Code_Service(160, 40+25, "77", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "77", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 77;
// VSpeed_val = 77;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25, "Color", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "17-07", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_7);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_7);
// break;
// case 9:
// // GUI_Display_Version_Code_Service(160, 40+25, "88", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "88", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 88;
// VSpeed_val = 88;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "18-08", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_8);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_8);
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_lowPower1X6_Y16);
// break;
// case 10:
// // GUI_Display_Version_Code_Service(160, 40+25, "99", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 99;
// VSpeed_val = 99;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "19-09", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_1);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_9);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_9);
// GUI_Display_Version_Code_Service(70, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
// break;
// case 11:
// // GUI_Display_Version_Code_Service(160, 40+25, "100", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40, "99", Letter_Num_11, PCodeText_Space_size);
// fuel_val = 100;
// VSpeed_val = 99;
// // GUI_Display_Version_Code_Service(3, 40+25+25+25+25+25, "Time", Letter_Num_11, PCodeText_Space_size);
// // GUI_Display_Version_Code_Service(160, 40+25+25+25+25+25, "00-00", Letter_Num_11, PCodeText_Space_size);
// TFT_LCD_Draw_Bmp(140, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+27, 40+25+25+25+25+25, ( uint8_t * )NO_DIAN);
// TFT_LCD_Draw_Bmp(140+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// TFT_LCD_Draw_Bmp(140+18+18+18+18, 40+25+25+25+25+25, ( uint8_t * )NO_0);
// GUI_Display_Version_Code_Service(70, 40+25+25+25+25+25+25+25, "ALL", Letter_Num_11, PCodeText_Space_size);
// break;
// case 12:
// TFT_LCD_Draw_Bmp(20, 40+25+25+25+25+25+25+25, ( uint8_t * )gImage_gImage_bluetoothX6_Y165);
// break;
// case 13:
// // POWER_CTRL_KL30 = 0u; //B+
// // POWER_CTRL_KL15 = 0u; //KL15
// CAN_Msg_Tx_Enable = 0u;
// //Diag_Info_Init( );
// //Display_Init( );
// //Display_Version_Info(0);
// //Send_Init();
// //Send_ODO_Init();
// HW_Static_Current_Check(1);
// break;
// case 14:
// GUI_Display_Version_Code_Service(25, 20, "Please enter password ", Letter_Num_11, PCodeText_Space_size);
// break;
// case 15:
// // blename[4] = 0xFF;
// // if((blename[0]+blename[1]+blename[2]+blename[3]) != 0)
// // {
// // General_Number_Disp(blename, 3, 165);
// // }
// memset(blename,0xFF,5);
// Display_TFT_Clear();
// break;
// case 16:
// blename[4] = 0xFF;
// if((blename[0]+blename[1]+blename[2]+blename[3]) != 0)
// GUI_Display_Version_Code_Service(3, 150, "BT Name is ", Letter_Num_11, PCodeText_Space_size);
// if(((blename[0]+blename[1]+blename[2]+blename[3]) != 0) && (blename[0] != 0xFF) && (blename[1] != 0xFF)&& (blename[2] != 0xFF)&& (blename[3] != 0xFF))
// {
// General_Number_Disp(blename, 3, 165);
// General_Number_Disp(blename, 110, 150);
// }
// break;
// default:
// MENU_CHECK_STEP = 0;
// break;
// }
// if(menu < 13 && menu != 0)
// {
// GUI_General_Digit_Display(VSpeed_val, Num_15, 6, 5, ODODigitNum09PosX, 40);
// GUI_General_Digit_Display(fuel_val, Num_15, 6, 5, ODODigitNum09PosX, 40+25);
// }
memset(blename,0xFF,5);
Display_TFT_Clear();
break;
case 16:
blename[4] = 0xFF;
GUI_Display_Version_Code_Service(3, 150, "BT Name is ", Letter_Num_11, PCodeText_Space_size);
if(((blename[0]+blename[1]+blename[2]+blename[3]) != 0) && (blename[0] != 0xFF) && (blename[1] != 0xFF)&& (blename[2] != 0xFF)&& (blename[3] != 0xFF))
{
General_Number_Disp(blename, 110, 150);
}
break;
default:
MENU_CHECK_STEP = 0;
break;
}
if(menu < 13 && menu != 0)
{
GUI_General_Digit_Display(VSpeed_val, Num_15, 6, 5, ODODigitNum09PosX, 40);
GUI_General_Digit_Display(fuel_val, Num_15, 6, 5, ODODigitNum09PosX, 40+25);
}
}
// }
......@@ -4625,7 +4669,7 @@ void Buzzer_Init(void)
void Buzzer_Warning(void)
{
if((UDS_Warning_Voltage == 1) || (LED_Waring == 1) || (UDS_Warning_Fuel == 1) || (UDS_Warning_Air_Pressure1 == 1) || (UDS_Warning_Air_Pressure2 == 1))
if((UDS_Warning_Voltage == 1) /*|| (LED_Waring == 1)*/ || (UDS_Warning_Fuel == 1) || (UDS_Warning_Air_Pressure1 == 1) || (UDS_Warning_Air_Pressure2 == 1))
{
Buzzer_Start();
}
......
......@@ -96,6 +96,7 @@ extern const uint8_t * Letter_Num_11[];
extern uint32_t loc_Current_0;
extern void Get_static_Current(void);
extern uint32_t Get_Display_Type(void);
extern void Display_Num(uint16_t StartX, uint16_t StartY,uint16_t m_NUM,uint8_t CbkCycle);
extern const uint8_t *Num_15[];
#define PCodeText_Space_size 2//故障文字 英文空格的像素数
#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