BME280/bmetest.py

13 wiersze
192 B
Python

#
# Example. Using I2C at P9, P10
#
from machine import I2C
from bme280 import *
from utime import sleep
i2c=I2C(0)
bme280 = BME280(i2c=i2c)
while True:
print(bme280.values)
sleep(1)