parent
5cbc472177
commit
536954008a
2
main.py
2
main.py
|
@ -82,7 +82,7 @@ def get_moisture():
|
||||||
#temperature
|
#temperature
|
||||||
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=0x03)
|
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76)
|
||||||
return int(bmp280.temperature)
|
return int(bmp280.temperature)
|
||||||
|
|
||||||
# print(get_moisture())
|
# print(get_moisture())
|
||||||
|
|
Loading…
Reference in New Issue