maybe found address

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-11 01:37:49 +02:00
parent 0236cb9c7d
commit 779c4bdef1
1 changed files with 2 additions and 11 deletions

11
test.py
View File

@ -11,17 +11,8 @@ import time
count = 2 count = 2
i2c = busio.I2C(board.SCL, board.SDA) i2c = busio.I2C(board.SCL, board.SDA)
while True: while True:
count += 1 bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x4c)
if count != 77:
print(hex(count))
try:
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=hex(count))
print(bmp280.temperature) print(bmp280.temperature)
exit()
except:
pass
else:
exit()
# print(get_temperature() # print(get_temperature()