void LCD_DisplayDataUpdate(void)
{
static u32 TemValue1,RhValue1;
t++;
if(t<15)
{
TemValue1 = TemValue*100;
LCD_DisplayNumber1(0, ' ', 0);
LCD_DisplayNumber1(1, ' ', 0);
LCD_DisplayNumber1(2, '0' + ((TemValue1 / 1000) % 10), 0);
LCD_DisplayNumber1(3, '0' + ((TemValue1 / 100 ) % 10), 1);
LCD_DisplayNumber1(4, '0' + ((TemValue1 / 10 ) % 10), 0);
LCD_DisplayNumber1(5, '0' + ((TemValue1 / 1 ) % 10), 0);
LCD_DisplayUnit(4,1);
LCD_DisplayNumber2(0, ' ', 0);
}
else if(t<30)
{
RhValue1 = RhValue*100;
LCD_DisplayNumber1(0, 'H', 0);
LCD_DisplayNumber1(1, ' ', 0);
LCD_DisplayNumber1(2, '0' + ((RhValue1 / 1000) % 10), 0);
LCD_DisplayNumber1(3, '0' + ((RhValue1 / 100 ) % 10), 1);
LCD_DisplayNumber1(4, '0' + ((RhValue1 / 10 ) % 10), 0);
LCD_DisplayNumber1(5, '0' + ((RhValue1 / 1 ) % 10), 0);
LCD_DisplayUnit(4,0);
LCD_DisplayNumber2(0, ' ', 0);
}
else
{
t=0;
}
}
void LCD_Show_Heating_Temp(uint8_t temp)
{
LCD_DisplayNumber1(0, ' ', 0);
LCD_DisplayNumber1(1, 'H', 0);
LCD_DisplayNumber1(2, '-', 0);
LCD_DisplayNumber1(3, '0' + ((temp / 10 ) % 10), 0);
LCD_DisplayNumber1(4, '0' + ((temp / 1 ) % 10), 0);
LCD_DisplayNumber1(5, 'C', 0);
LCD_DisplayUnit(4,0);
}
void LCD_Show_Refrigeration_Temp(uint8_t temp)
{
LCD_DisplayNumber1(0, ' ', 0);
LCD_DisplayNumber1(1, 'C', 0);
LCD_DisplayNumber1(2, '-', 0);
LCD_DisplayNumber1(3, '0' + ((temp / 10 ) % 10), 0);
LCD_DisplayNumber1(4, '0' + ((temp / 1 ) % 10), 0);
LCD_DisplayNumber1(5, 'C', 0);
LCD_DisplayUnit(4,0);
}
void LCD_Show_Wind_Speed(uint8_t Wind_Speed)
{
switch(Wind_Speed)
{
case 0: //自动
{
LCD_DisplayNumber2(0, 'A', 0);
break;
}
case 1: //低速
{
LCD_DisplayNumber2(0, 'L', 0);
break;
}
case 2://中速
{
LCD_DisplayNumber2(0, 'I', 0);
break;
}
case 3://高速
{
LCD_DisplayNumber2(0, 'H', 0);
break;
}
}
}