標題:
基于arduino的DHT11溫度報警器
[打印本頁]
作者:
pk可樂
時間:
2019-12-29 11:20
標題:
基于arduino的DHT11溫度報警器
if(temperature>25)
{
int thisNote = 0;
while( thisNote < 8)
{
tone(8, melody[thisNote], duration);//第一個是輸出引腳,第二個是要發(fā)的聲調,第三個是持續(xù)時間的意思
delay(duration);
thisNote++; //
}
if (thisNote==8)
thisNote=0; //清零
digitalWrite(RED, HIGH);
digitalWrite(BLUE, LOW);
digitalWrite(GREEN, LOW);
}
基于arduino的溫度報警器.7z
2019-12-29 12:30 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
21.07 KB, 下載次數(shù): 11, 下載積分: 黑幣 -5
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1