Skip to content

Commit f7ba3ee

Browse files
authored
Merge pull request #34 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents ad51bc3 + 6c2cd36 commit f7ba3ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/si7021_simpletest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
import adafruit_si7021
1010

1111
# Create library object using our Bus I2C port
12-
sensor = adafruit_si7021.SI7021(board.I2C())
12+
i2c = board.I2C() # uses board.SCL and board.SDA
13+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
14+
sensor = adafruit_si7021.SI7021(i2c)
1315

1416
# If you'd like to use the heater, you can uncomment the code below
1517
# and pick a heater level that works for your purposes

0 commit comments

Comments
 (0)