parent
c841f7123d
commit
199bdac5f9
2
test.py
2
test.py
|
@ -5,7 +5,7 @@ import time
|
||||||
|
|
||||||
def get_temperature():
|
def get_temperature():
|
||||||
i2c = busio.I2C(board.SCL, board.SDA)
|
i2c = busio.I2C(board.SCL, board.SDA)
|
||||||
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x01)
|
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x03)
|
||||||
return bmp280.temperature
|
return bmp280.temperature
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue