Skip to content

Commit 661b994

Browse files
authored
Merge pull request #2 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 7803977 + aba50a2 commit 661b994

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/ens160_advancedtest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_ens160
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

1112
ens = adafruit_ens160.ENS160(i2c)
1213
print("Firmware Vers: ", ens.firmware_version)

examples/ens160_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_ens160
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

1112
ens = adafruit_ens160.ENS160(i2c)
1213

0 commit comments

Comments
 (0)