Skip to content

Commit 2a72718

Browse files
committed
Added commented out board.STEMMA_I2C with explanation
1 parent 7929b0b commit 2a72718

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/tca9548a_multisensor.py

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

1111
# Create I2C bus as normal
1212
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
1314

1415
# Create the TCA9548A object and give it the I2C bus
1516
tca = adafruit_tca9548a.TCA9548A(i2c)

examples/tca9548a_simpletest.py

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

88
# Create I2C bus as normal
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
# Create the TCA9548A object and give it the I2C bus
1213
tca = adafruit_tca9548a.TCA9548A(i2c)

0 commit comments

Comments
 (0)