AT89C52控制溫度傳感器DS18B20并在LM016L_LCD上顯示
//----------------------------------------
//函 數(shù) 名:main()
//函數(shù)類型:void
//入口參數(shù):None
//出口參數(shù):None
//說明:main函數(shù)
//----------------------------------------
void main()
{
uchar i;
lcd_init();
display();
while(1)
{
convert_tempt();
for(i=0;i10;i++)
{display_tempt(get_tempt());}
}
}本文引用地址:http://www.ex-cimer.com/article/201807/383597.htm
評(píng)論