From c3fec5727c2eb4462200ca2b006a7650bc74fe79 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 18 Nov 2022 13:05:27 -0500 Subject: [PATCH] Added commented out board.STEMMA_I2C with explanation --- examples/mpu6050_inclinometer.py | 1 + examples/mpu6050_plotter_example.py | 1 + examples/mpu6050_simpletest.py | 1 + examples/mpu6050_sleep_example.py | 1 + 4 files changed, 4 insertions(+) diff --git a/examples/mpu6050_inclinometer.py b/examples/mpu6050_inclinometer.py index abff4eb..d600207 100644 --- a/examples/mpu6050_inclinometer.py +++ b/examples/mpu6050_inclinometer.py @@ -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) diff --git a/examples/mpu6050_plotter_example.py b/examples/mpu6050_plotter_example.py index 4a17316..1b231ba 100644 --- a/examples/mpu6050_plotter_example.py +++ b/examples/mpu6050_plotter_example.py @@ -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 diff --git a/examples/mpu6050_simpletest.py b/examples/mpu6050_simpletest.py index 3bdf165..7edea29 100644 --- a/examples/mpu6050_simpletest.py +++ b/examples/mpu6050_simpletest.py @@ -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: diff --git a/examples/mpu6050_sleep_example.py b/examples/mpu6050_sleep_example.py index f8af811..e5c461e 100644 --- a/examples/mpu6050_sleep_example.py +++ b/examples/mpu6050_sleep_example.py @@ -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