I just purchased a MPU-9150 and I'm trying to learn the most basic way to read a value off the sensor. I'm brand new to I2C. To learn I usually start from the bottom so I've created this real simple code:
#define ADDRESS 0x3B // this points to the ACCEL_XOUT_H register
float a; // to hold the returned value
Wire.begin(); // wake up I2C bus
// Reset the register
// Request the value from the register
a = Wire.read();
However, this code returns -1.00 continuously. What am I doing wrong? Shouldn't it give me something a little more useful? I appreciate any support.