I2C due question

Hello,

When I use my arduino mega 2560 with i2c on my gyroscope, I read angular velocity values between 0-360 degrees/sec, this is what is correct. But when is use the same program on the due it gave values from approximately 0-560 degrees/sec. What do I need to change in my program to make it work on the due. I use the pins 20 and 21 of the due for i2c.

It needs to be implemented into the due in a bigger project.

Thanks

Does the gyroscope support the Due's 3.3V levels?

Which version of the IDE/Arduino core libraries are you using? There is a change in 1.5.7 for I2C.