parent
13f13627b8
commit
d8da243a07
2
test.py
2
test.py
|
@ -12,7 +12,7 @@ count = 2
|
||||||
i2c = busio.I2C(board.SCL, board.SDA)
|
i2c = busio.I2C(board.SCL, board.SDA)
|
||||||
while True:
|
while True:
|
||||||
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76)
|
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76)
|
||||||
print(bmp280.temperature)
|
print(int(bmp280.temperature))
|
||||||
# print(get_temperature()
|
# print(get_temperature()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue