parent
5cbc472177
commit
536954008a
2
main.py
2
main.py
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue