1
0
mirror of https://github.com/cmur2/python-bme280.git synced 2025-10-13 12:02:30 +02:00
This commit is contained in:
cn
2016-05-30 22:13:05 +02:00
parent 1750cff8b3
commit d6d215d1f9
6 changed files with 305 additions and 0 deletions

10
demo.py Normal file
View File

@@ -0,0 +1,10 @@
import bme280
if __name__ == '__main__':
bme = bme280.Bme280()
bme.set_mode(bme280.MODE_FORCED)
t, p, h = bme.get_data()
print "Temperature: %f °C" % t
print "Pressure: %f P" % p
print "Humidity: %f %" % h