From 4049259939b61509f72860772c59087cf98c1105 Mon Sep 17 00:00:00 2001 From: dherrada <dylan.herrada@adafruit.com> Date: Fri, 18 Nov 2022 13:05:29 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/si7021_simpletest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/si7021_simpletest.py b/examples/si7021_simpletest.py index 46b6af0..4e88dd5 100644 --- a/examples/si7021_simpletest.py +++ b/examples/si7021_simpletest.py @@ -9,7 +9,9 @@ import adafruit_si7021 # Create library object using our Bus I2C port -sensor = adafruit_si7021.SI7021(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_si7021.SI7021(i2c) # If you'd like to use the heater, you can uncomment the code below # and pick a heater level that works for your purposes