Skip to content

Commit 0f677d9

Browse files
authored
Merge pull request #9 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 78f9be0 + 762ea17 commit 0f677d9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/htu31d_setting_resolutions.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88

99
# import htu31d_setting_resolutions
10-
i2c = board.I2C()
10+
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
htu = adafruit_htu31d.HTU31D(i2c)
1213

1314

examples/htu31d_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_htu31d
88

99
i2c = board.I2C() # uses board.SCL and board.SDA
10+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011
htu = adafruit_htu31d.HTU31D(i2c)
1112
print("Found HTU31D with serial number", hex(htu.serial_number))
1213

0 commit comments

Comments
 (0)