From cdfe16593226b551a4d00b5927216018105be57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 11 Jul 2022 01:35:32 +0200 Subject: [PATCH] added count up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.py b/test.py index e50dcda..7149a8c 100644 --- a/test.py +++ b/test.py @@ -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()