| Gyroscope | ±250/500/1000/2000 °/s |
| Accelerometer | ±2/4/8/16 g |
| Interface | I2C |
| DMP | Built-in motion processor |
from machine import I2C, Pin
from mpu6050 import MPU6050
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
mpu = MPU6050(i2c)
accel = mpu.acceleration
gyro = mpu.gyro
temp = mpu.temperature
print(f"Accel: {accel}, Gyro: {gyro}")