void T_Display1() { EA=0; read_wendu1();//读取温度 EA=1; wendu1=((TPH1&0x07)*16+TPL1*0.0625)*100;//转换实际温度 LcdSetCursor(6,0); LcdWriteDat(0x30+wendu1/1000%10); LcdSetCursor(7,0); LcdWriteDat(0x30+wendu1/100%10); } void T_Display2() { EA=0; read_wendu2();//读取温度 EA=1; wendu2=((TPH2&0x07)*16+TPL2*0.0625)*100;//转换实际温度 LcdSetCursor(10,0); LcdWriteDat(0x30+wendu2/1000%10); LcdSetCursor(11,0); LcdWriteDat(0x30+wendu2/100%10);} void T_Display3() { EA=0; read_wendu3();//读取温度 EA=1; wendu3=((TPH3&0x07)*16+TPL3*0.0625)*100;//转换实际温度 LcdSetCursor(14,0); LcdWriteDat(0x30+wendu3/1000%10); LcdSetCursor(15,0); LcdWriteDat(0x30+wendu3/100%10);}这是三个显示的 |