import mpu6050 chip = mpu6050.mpu6050(address=0x68, bus=1, debug=True) x, y, z, rotx, roty = chip.GetAccelerometerValues(rotation=True) >> [DEBUG] Accessing MPU6050 at address 0x68 on bus 1 >> [DEBUG] Reading Accel and Gyro config >> [DEBUG] > Reading 2 bytes from register 0x1b >> [DEBUG] > MPU6050 response : [0x00 0x00] >> [DEBUG] > Setting Gyro sensitivity to '250°/s' (131.0 LSB/°/s) >> [DEBUG] > Setting Accel sensitivity to '2g' (16384.0 LSB/g) >> >> [DEBUG] Reading accelerometer registers >> [DEBUG] > Reading 6 bytes from register 0x3b >> [DEBUG] > MPU6050 response : [0x00 0xA0 0xFF 0x58 0x3A 0x08] >> [DEBUG] MPU6050 accelerometer response : >> [DEBUG] > Accel X = 0.009765625g >> [DEBUG] > Accel Y = -0.01025390625g >> [DEBUG] > Accel Z = 0.90673828125g >> [DEBUG] > Rotation X = 0.617015632991° >> [DEBUG] > Rotation Y = -0.647867698234°