创作者:czh1 | 更新日期:2019-03-23 | 在线时长:2时
pin = 1
tmr.alarm(0,500, 1, function()
status, temp, humi, temp_dec, humi_dec = dht.read11(pin)
if temp~=-999 and humi~=-999 then
print('tem '..temp)
print('hum '..humi)
end
end)
没什么好说的...