Skip to content

Commit 4e415af

Browse files
authored
Merge pull request #3 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents e62d514 + 88f5ddf commit 4e415af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/mmc56x3_continuous.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import adafruit_mmc56x3
88

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
sensor = adafruit_mmc56x3.MMC5603(i2c)
1112

1213
sensor.data_rate = 10 # in Hz, from 1-255 or 1000

examples/mmc56x3_simpletest.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import adafruit_mmc56x3
99

1010
i2c = board.I2C() # uses board.SCL and board.SDA
11+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1112
sensor = adafruit_mmc56x3.MMC5603(i2c)
1213

1314
while True:

0 commit comments

Comments
 (0)