文件名称:DHT
文件大小:11.52MB
文件格式:ZIP
更新时间:2024-04-19 05:19:36
C++
DHT22工作一功能:温湿度感测显示温度和湿度温度大于等于20度时让蜂鸣器响起输出脚:2(温湿度感测器输出),3(蜂鸣器输入) # include < Adafruit> # include < DHT> # include < DHT> # define DHTPIN 2 # define DHTTYPE DHT22 // DHT 22 (AM2302) DHT_Unified dht (DHTPIN, DHTTYPE); uint32_t delayMS; int a; void setup () { Serial. begin ( 9600 ); dht. begin (); sensor_t sensor; delayMS = sensor. min_delay / 1000 ; } void loop ()
【文件预览】:
DHT-main
----DSC_0023.JPG(5.75MB)
----DSC_0024.JPG(6.26MB)
----DHT.ino(2KB)
----README.md(1KB)