1
0
mirror of https://github.com/cmur2/python-bme680.git synced 2024-12-22 12:54:29 +01:00

added temp offset float example

This commit is contained in:
Lars Lühr 2018-05-28 21:41:16 +00:00
parent ae004aa62b
commit 8cb0dead6b

View File

@ -26,8 +26,8 @@ sensor.get_sensor_data()
output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity)
print(output)
print("SET offset -10 degrees celsius")
sensor.set_temp_offset(-10)
print("SET offset -1.87 degrees celsius")
sensor.set_temp_offset(-1.87)
sensor.get_sensor_data()
output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity)
print(output)