parent
b136496d23
commit
c841f7123d
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=0x76)
|
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x01)
|
||||||
return bmp280.temperature
|
return bmp280.temperature
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue