From c7b6351967c90c5ee5fbfcc83551977034a40070 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:29 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/sht31d_periodic_mode.py | 3 ++- examples/sht31d_simple_mode.py | 3 ++- examples/sht31d_simpletest.py | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/sht31d_periodic_mode.py b/examples/sht31d_periodic_mode.py index 3c58977..8d40cec 100644 --- a/examples/sht31d_periodic_mode.py +++ b/examples/sht31d_periodic_mode.py @@ -6,7 +6,8 @@ import adafruit_sht31d # Create sensor object, communicating over the board's default I2C bus -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 sensor = adafruit_sht31d.SHT31D(i2c) print("\033[1mSensor\033[0m = SHT31-D") diff --git a/examples/sht31d_simple_mode.py b/examples/sht31d_simple_mode.py index 400373b..223597b 100644 --- a/examples/sht31d_simple_mode.py +++ b/examples/sht31d_simple_mode.py @@ -5,7 +5,8 @@ import adafruit_sht31d # Create sensor object, communicating over the board's default I2C bus -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 sensor = adafruit_sht31d.SHT31D(i2c) print("\033[1mSensor\033[0m = SHT31-D") diff --git a/examples/sht31d_simpletest.py b/examples/sht31d_simpletest.py index e969b63..a7bef97 100644 --- a/examples/sht31d_simpletest.py +++ b/examples/sht31d_simpletest.py @@ -6,7 +6,8 @@ import adafruit_sht31d # Create sensor object, communicating over the board's default I2C bus -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 sensor = adafruit_sht31d.SHT31D(i2c) loopcount = 0