ESP8266/Lua Codez
Jump to navigation
Jump to search
Dump BME280 Pressure, Humidity and Temperature
bme280.init(1,2)
tmr.alarm(1, 3000, 1, function()
tmr.softwd(30)
local h,t,b=bme280.humi(),bme280.temp(),bme280.baro()
print('humi: '..(h/1000)..'% temp: '..(t/100)..'C baro: '..b..'PA dewp: '..(bme280.dewpoint(h,t)/100)..'C')
end)