From 34403f2c79b1af291c8cf7cac90be242fd02eb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 10 Jul 2022 19:49:07 +0200 Subject: [PATCH] next temp test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 2f07999..447f4e6 100644 --- a/test.py +++ b/test.py @@ -4,7 +4,9 @@ import adafruit_bmp280 import time def get_temperature(): - + i2c = busio.I2C(board.SCL, board.SDA) + bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, address=0x76) + return bmp280.temperature while True: print(get_temperature())