from imu import MPU6050
from machine import SoftI2C,Pin
import time
i2c = SoftI2C(sda=Pin(15), scl=Pin(16))
imu = MPU6050(i2c)
while 1:
print(imu.accel.xyz)
print(imu.gyro.xyz)
time.sleep(1)from imu import MPU6050
from machine import SoftI2C,Pin
import time
i2c = SoftI2C(sda=Pin(15), scl=Pin(16))
imu = MPU6050(i2c)
while 1:
print(imu.accel.xyz)
print(imu.gyro.xyz)
time.sleep(1)