標(biāo)題: 求煙霧傳感器源程序 [打印本頁(yè)]

作者: ruan1994    時(shí)間: 2017-5-4 10:42
標(biāo)題: 求煙霧傳感器源程序
求一個(gè)完整的煙霧傳感器源程序

作者: 13819348    時(shí)間: 2017-5-6 13:50
void main()
{  
while(1)   //無限循環(huán)
{   LED=1;    //熄滅P1.0口燈   
if(DOUT==0)//當(dāng)濃度高于設(shè)定值時(shí) ,執(zhí)行條件函數(shù)  
{      
delay();//延時(shí)抗干擾  
if(DOUT==0)//確定 濃度高于設(shè)定值時(shí) ,執(zhí)行條件函數(shù)   
  {   
LED=0;    //點(diǎn)亮P1.0口燈  
}  
}
}
}  
作者: Uranus    時(shí)間: 2017-5-6 20:29
http://www.torrancerestoration.com/mcu/3844.html




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1