Skip to content

Commit dfe858c

Browse files
authored
Merge pull request #33 from adafruit/stemma_i2c
Added commented out board.STEMMA_I2C with explanation
2 parents cecbdcb + c3fec57 commit dfe858c

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

examples/mpu6050_inclinometer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import adafruit_mpu6050
1313

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

1718

examples/mpu6050_plotter_example.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import adafruit_mpu6050
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
mpu = adafruit_mpu6050.MPU6050(i2c)
1011
mpu.accelerometer_range = adafruit_mpu6050.Range.RANGE_2_G
1112
mpu.gyro_range = adafruit_mpu6050.GyroRange.RANGE_250_DPS

examples/mpu6050_simpletest.py

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

1112
while True:

examples/mpu6050_sleep_example.py

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

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

0 commit comments

Comments
 (0)