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

13
test.py
View File

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