Skip to content

Commit 66f85c9

Browse files
authored
Merge pull request #17 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents 66e7903 + 2357453 commit 66f85c9

6 files changed

+6
-0
lines changed

examples/icm20x_icm20649_full_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def printNewMax(value, current_max, axis):
1515

1616
# pylint:disable=no-member
1717
i2c = board.I2C() # uses board.SCL and board.SDA
18+
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1819

1920
ism = ICM20649(i2c)
2021

examples/icm20x_icm20649_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_icm20x
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
icm = adafruit_icm20x.ICM20649(i2c)
1011

1112
while True:

examples/icm20x_icm20948_accel_data_rate_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
cycles = 200
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
icm = ICM20948(i2c)
1112

1213
# Cycle between two data rates

examples/icm20x_icm20948_gyro_data_rate_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
cycles = 200
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
icm = ICM20948(i2c)
1112

1213
# Cycle between two data rates

examples/icm20x_icm20948_mag_data_rate_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
cycles = 200
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
icm = ICM20948(i2c)
1213

1314
# Cycle between two data rates

examples/icm20x_icm20948_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_icm20x
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
icm = adafruit_icm20x.ICM20948(i2c)
1011

1112
while True:

0 commit comments

Comments
 (0)