Commit b1ba66f7 authored by 何锐's avatar 何锐

feat:增加初始化判定

parent 34334657
......@@ -177,8 +177,8 @@ void datacheck(void)
blename[2] = RS485_data[8];
blename[3] = RS485_data[9];
blename[4] = 0xff;
lightnumber = (RS485_data[11]<<8)+RS485_data[10];
writeflag = RS485_data[12];
lightnumber = (RS485_data[12]<<8)+RS485_data[11];
writeflag = RS485_data[13];
}
// General_Number_Disp(blename, 3, 165);
......
......@@ -267,14 +267,14 @@ uint8_t yibiaoshuju[34];
General_Number_Disp(erweima, 3, 60);
// if(writeflag == 1 || writeflag == 3)
// {
// TFT_LCD_Draw_Bmp(200, 90+40, ( uint8_t * )gImage_dui12 );
// }
// else
// {
// TFT_LCD_Draw_Bmp(200, 90+40, ( uint8_t * )gImage_cuo12 );
// }
if(writeflag == 1 || writeflag == 3)
{
TFT_LCD_Draw_Bmp(200, 90+40, ( uint8_t * )gImage_dui12 );
}
else
{
TFT_LCD_Draw_Bmp(200, 90+40, ( uint8_t * )gImage_cuo12 );
}
}
else if(saomafinish == 1)
{
......@@ -291,14 +291,14 @@ uint8_t yibiaoshuju[34];
erweima[34] = 0xFF;
General_Number_Disp(erweima, 3, 60);
// if(writeflag == 1 || writeflag == 3)
// {
// TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_dui12 );
// }
// else
// {
// TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_cuo12 );
// }
if(writeflag == 1 || writeflag == 3)
{
TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_dui12 );
}
else
{
TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_cuo12 );
}
uint8_t writesuccess[8] = {0x53,0x55,0x43,0x43,0x45,0x53,0x53,0xff};
General_Number_Disp(writesuccess, 3, 125);
}
......@@ -308,14 +308,14 @@ uint8_t yibiaoshuju[34];
erweima[34] = 0xFF;
General_Number_Disp(erweima, 3, 60);
// if(writeflag == 1 || writeflag == 3)
// {
// TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_dui12 );
// }
// else
// {
// TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_cuo12 );
// }
if(writeflag == 1 || writeflag == 3)
{
TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_dui12 );
}
else
{
TFT_LCD_Draw_Bmp(200, 90+40-5, ( uint8_t * )gImage_cuo12 );
}
uint8_t writesuccess[8] = {0x53,0x55,0x43,0x43,0x45,0x53,0x53,0xff};
General_Number_Disp(writesuccess, 3, 125);
......
......@@ -4902,7 +4902,7 @@ void Display_Version_Info(uint32_t ON_OFF)
// TFT_LCD_Draw_Bmp(3, 160, ( uint8_t * )gImage_Alarm_12_WordX6_Y165); //24脚输出占空比
// TFT_LCD_Draw_Bmp(210, 160, ( uint8_t * )gImage_Alarm_13_ImageX222_Y166); //%
TFT_LCD_Draw_Bmp(3, 290, ( uint8_t * )gImage_gImage_checkVX6_Y165 ); //检测台版本号
uint8_t mbuff [7] = {2,5,1,1,2,0,0xff};
uint8_t mbuff [7] = {2,5,1,1,2,1,0xff};
General_Number_Disp(mbuff, 160, 290);
}
......
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