Skip to content

Commit c66d46d

Browse files
authored
Merge pull request #19 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents f341566 + 14e95f3 commit c66d46d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

examples/msa301_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_msa3xx import MSA301
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
msa = MSA301(i2c)
1011

1112
while True:

examples/msa301_tap_example.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_msa3xx import MSA301
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
msa = MSA301(i2c)
1011

1112
msa.enable_tap_detection()

examples/msa311_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from adafruit_msa3xx import MSA311
77

88
i2c = board.I2C() # uses board.SCL and board.SDA
9+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910
msa = MSA311(i2c)
1011

1112
while True:

0 commit comments

Comments
 (0)