next address

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-11 01:28:56 +02:00
parent c841f7123d
commit 199bdac5f9
1 changed files with 1 additions and 1 deletions

View File

@ -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: