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:
parent
ae004aa62b
commit
8cb0dead6b
@ -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)
|
output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity)
|
||||||
print(output)
|
print(output)
|
||||||
|
|
||||||
print("SET offset -10 degrees celsius")
|
print("SET offset -1.87 degrees celsius")
|
||||||
sensor.set_temp_offset(-10)
|
sensor.set_temp_offset(-1.87)
|
||||||
sensor.get_sensor_data()
|
sensor.get_sensor_data()
|
||||||
output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity)
|
output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity)
|
||||||
print(output)
|
print(output)
|
||||||
|
Loading…
Reference in New Issue
Block a user