added count up

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-11 01:35:32 +02:00
parent 5e8b31af21
commit cdfe165932
1 changed files with 2 additions and 0 deletions

View File

@ -12,12 +12,14 @@ count = 3
i2c = busio.I2C(board.SCL, board.SDA)
while True:
if count != 77:
print(hex(count))
try:
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=hex(count))
print(bmp280.temperature)
exit()
except:
pass
count + 1
else:
exit()
# print(get_temperature()