标题:
基于arduino的DHT11温度报警器
[打印本页]
作者:
pk可乐
时间:
2019-12-29 11:20
标题:
基于arduino的DHT11温度报警器
if(temperature>25)
{
int thisNote = 0;
while( thisNote < 8)
{
tone(8, melody[thisNote], duration);//第一个是输出引脚,第二个是要发的声调,第三个是持续时间的意思
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, 下载次数: 11, 下载积分: 黑币 -5
欢迎光临 (http://www.51hei.com/bbs/)
Powered by Discuz! X3.1