File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 12
12
import adafruit_mpu6050
13
13
14
14
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
15
16
sensor = adafruit_mpu6050 .MPU6050 (i2c )
16
17
17
18
Original file line number Diff line number Diff line change 6
6
import adafruit_mpu6050
7
7
8
8
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
9
10
mpu = adafruit_mpu6050 .MPU6050 (i2c )
10
11
mpu .accelerometer_range = adafruit_mpu6050 .Range .RANGE_2_G
11
12
mpu .gyro_range = adafruit_mpu6050 .GyroRange .RANGE_250_DPS
Original file line number Diff line number Diff line change 6
6
import adafruit_mpu6050
7
7
8
8
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
9
10
mpu = adafruit_mpu6050 .MPU6050 (i2c )
10
11
11
12
while True :
Original file line number Diff line number Diff line change 6
6
import adafruit_mpu6050
7
7
8
8
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
9
10
mpu = adafruit_mpu6050 .MPU6050 (i2c )
10
11
11
12
# This example is meant to be used with the serial plotter which makes
You can’t perform that action at this time.
0 commit comments