From 367f116996a82a45a9eb738871edd478f45e8d82 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/sgp40_indextest.py | 1 + examples/sgp40_simpletest.py | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/sgp40_indextest.py b/examples/sgp40_indextest.py index cef744e..da9901c 100644 --- a/examples/sgp40_indextest.py +++ b/examples/sgp40_indextest.py @@ -8,6 +8,7 @@ # Boards i2c bus i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller sgp = adafruit_sgp40.SGP40(i2c) # Humidity sensor for compensated Readings diff --git a/examples/sgp40_simpletest.py b/examples/sgp40_simpletest.py index 5d9d9d3..9f4a253 100644 --- a/examples/sgp40_simpletest.py +++ b/examples/sgp40_simpletest.py @@ -9,6 +9,7 @@ # import adafruit_bme280 i2c = board.I2C() # uses board.SCL and board.SDA +# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller sgp = adafruit_sgp40.SGP40(i2c) # And if you have a temp/humidity sensor, define the sensor here as well # bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)