Skip to content

Commit bd1634e

Browse files
authored
Merge pull request #23 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents a2ddea6 + 3c3cc27 commit bd1634e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/mma8451_simpletest.py

Lines changed: 1 addition & 0 deletions
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 MMA8451 module.
1516
sensor = adafruit_mma8451.MMA8451(i2c)

0 commit comments

Comments
 (0)