Skip to content

Commit aa59f11

Browse files
authored
Merge pull request #16 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 6f014b1 + 3c3bd8f commit aa59f11

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/sgp40_indextest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# Boards i2c bus
1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
sgp = adafruit_sgp40.SGP40(i2c)
1213

1314
# Humidity sensor for compensated Readings

examples/sgp40_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# import adafruit_bme280
1010

1111
i2c = board.I2C() # uses board.SCL and board.SDA
12+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1213
sgp = adafruit_sgp40.SGP40(i2c)
1314
# And if you have a temp/humidity sensor, define the sensor here as well
1415
# bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)

0 commit comments

Comments
 (0)