From ea479b43ce3329b325ffdf12cfb98bc705b63ffc Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:24 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/htu31d_setting_resolutions.py | 3 ++- examples/htu31d_simpletest.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/htu31d_setting_resolutions.py b/examples/htu31d_setting_resolutions.py index 35c5dfa..6be82d9 100644 --- a/examples/htu31d_setting_resolutions.py +++ b/examples/htu31d_setting_resolutions.py @@ -7,7 +7,8 @@ # import htu31d_setting_resolutions -i2c = board.I2C() +i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller htu = adafruit_htu31d.HTU31D(i2c) diff --git a/examples/htu31d_simpletest.py b/examples/htu31d_simpletest.py index 72b29fd..a4ab285 100644 --- a/examples/htu31d_simpletest.py +++ b/examples/htu31d_simpletest.py @@ -7,6 +7,7 @@ import adafruit_htu31d i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller htu = adafruit_htu31d.HTU31D(i2c) print("Found HTU31D with serial number", hex(htu.serial_number))