Hello, I'm trying to use the MPU6050 Gyroscope with tower MK70 on I2C communication protocol but I have some problems.
To read temperature (for example) values I used the following code:
GI2C1_ReadAddress(DEVICE_ADDRESS, 0x41, 1, &xyz, sizeof(xyz));
but it seems that the data I read are always the same. I tried to write in a register with the following code:
GI2C1_WriteAddress(DEVICE_ADDRESS, 0x23, 1, 197, 1);
but it seems that the register values don't change.
Maybe it is necessary to initialize the device but I don't know how to do it.
Thanks in advance.