Skip to content

Commit

Permalink
Merge pull request #33 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 committed Nov 22, 2022
2 parents cecbdcb + c3fec57 commit dfe858c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/mpu6050_inclinometer.py
Expand Up @@ -12,6 +12,7 @@
import adafruit_mpu6050

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


Expand Down
1 change: 1 addition & 0 deletions examples/mpu6050_plotter_example.py
Expand Up @@ -6,6 +6,7 @@
import adafruit_mpu6050

i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
mpu = adafruit_mpu6050.MPU6050(i2c)
mpu.accelerometer_range = adafruit_mpu6050.Range.RANGE_2_G
mpu.gyro_range = adafruit_mpu6050.GyroRange.RANGE_250_DPS
Expand Down
1 change: 1 addition & 0 deletions examples/mpu6050_simpletest.py
Expand Up @@ -6,6 +6,7 @@
import adafruit_mpu6050

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

while True:
Expand Down
1 change: 1 addition & 0 deletions examples/mpu6050_sleep_example.py
Expand Up @@ -6,6 +6,7 @@
import adafruit_mpu6050

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

# This example is meant to be used with the serial plotter which makes
Expand Down

0 comments on commit dfe858c

Please sign in to comment.