fixed temp address (hex)

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-12 10:28:31 +02:00
parent 5cbc472177
commit 536954008a
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ def get_moisture():
#temperature
def get_temperature():
i2c = busio.I2C(board.SCL, board.SDA)
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x03)
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76)
return int(bmp280.temperature)
# print(get_moisture())