from machine import Pin
from MPU6050 import MPU6050
from time import sleep_ms
acc = MPU6050()
while True:
accel = acc.read_accel_data()
ax = accel["x"]
ay = accel["y"]
az = accel["z"]
print("ACCELERATION" + "x: " + str(ax)+ "y: "+ str(ay) + "z: " + str(az) )
# gyro = acc.read_gyro_data()
# gx = gyro["x"]
# gy = gyro["y"]
#gz = gyro["z"]
# print("GYROSCOPE " + "x: " + str(gx) + " y: " + str(gy) + " z: " + str(gz))
#temp = acc.read_temperature()
#print(temp)