Skip to content

Commit 8bda6c9

Browse files
authored
Merge pull request #23 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents ffa5a2a + ec59f45 commit 8bda6c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/mpl3115a2_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# Create sensor object, communicating over the board's default I2C bus
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
# Initialize the MPL3115A2.
1516
sensor = adafruit_mpl3115a2.MPL3115A2(i2c)

0 commit comments

Comments
 (0)