Skip to content

Commit c971384

Browse files
authored
Merge pull request #41 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 22dcb83 + fc61e48 commit c971384

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/tca9548a_multisensor.py

+1
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

+1
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)