I’m trying to use the I2C(TWI) protocol to get some data from The GY-5150 (HCMODU0064) which is a breakout module for the MPU-9150 9DOF (Acc, Gyros, Compass) using an Atmega1284P
I’m using the Fleury’s Libray:
I omitted the file “i2cmaster.S” since when I try to compile the solution with this file included; I got an error message stating “functions redefinition”
I’m using as well a library (MPU9150.h) from the 9DOF supplier containing some routines that I tried to adapt from Arduino to Atmega
and an LCD library to display the results (TFTLCD3.h)
The problem is that I do not get any sensor reading on the screen and it seems that the processor gets stuck in some loop.
Did I miss something? Any help please?
Set ups Fcpu=16Mhz , Fscl=400Khz