Skip to content

Commit

Permalink
Merge pull request #17 from adafruit/stemma_i2c
Browse files Browse the repository at this point in the history
Added commented out board.STEMMA_I2C with explanation
  • Loading branch information
evaherrada authored Nov 28, 2022
2 parents 66e7903 + 2357453 commit 66f85c9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/icm20x_icm20649_full_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def printNewMax(value, current_max, axis):

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

ism = ICM20649(i2c)

Expand Down
1 change: 1 addition & 0 deletions examples/icm20x_icm20649_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_icm20x

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
icm = adafruit_icm20x.ICM20649(i2c)

while True:
Expand Down
1 change: 1 addition & 0 deletions examples/icm20x_icm20948_accel_data_rate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

cycles = 200
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
icm = ICM20948(i2c)

# Cycle between two data rates
Expand Down
1 change: 1 addition & 0 deletions examples/icm20x_icm20948_gyro_data_rate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

cycles = 200
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
icm = ICM20948(i2c)

# Cycle between two data rates
Expand Down
1 change: 1 addition & 0 deletions examples/icm20x_icm20948_mag_data_rate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

cycles = 200
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
icm = ICM20948(i2c)

# Cycle between two data rates
Expand Down
1 change: 1 addition & 0 deletions examples/icm20x_icm20948_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import adafruit_icm20x

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
icm = adafruit_icm20x.ICM20948(i2c)

while True:
Expand Down

0 comments on commit 66f85c9

Please sign in to comment.