#include "MPU6050_6Axis_MotionApps20.h"
//#include "MPU6050.h" // not necessary if using MotionApps include file
// class default I2C address is 0x68
// specific I2C addresses may be passed as a parameter here
// AD0 low = 0x68 (default for SparkFun breakout and InvenSense evaluation board)
// AD0 high = 0x69
MPU6050 mpu;
What is meant by "specific I2C addresses may be passed as a parameter here"? What syntax would be used to specify this I2C address? I have tried a few of the functions in the Wire library but they did not work as expected.
ARDUINputOutput:
What is meant by "specific I2C addresses may be passed as a parameter here"? What syntax would be used to specify this I2C address? I have tried a few of the functions in the Wire library but they did not work as expected.
I suspect it is just inarticulate geekspeak. The I2C addresses are declared at the start of the sketch and 0x68 is the most common.
Here is the preliminary for my clock on 0x68 and my display on 0x27. I would like to know what that ADO stuff is about, my code does not have it.
ARDUINputOutput:
What is meant by "specific I2C addresses may be passed as a parameter here"? What syntax would be used to specify this I2C address? I have tried a few of the functions in the Wire library but they did not work as expected.
I had the same issue, so I emailed the dev of the code. His reply was to call it with MPU6050 accelgyro(0x69);
This seemed to do the job for my setup.
#include "Wire.h"
#include "I2Cdev.h"
#include "MPU6050.h"
// class default I2C address is 0x68
// specific I2C addresses may be passed as a parameter here
// AD0 low = 0x68 (default for InvenSense evaluation board)
// AD0 high = 0x69
MPU6050 accelgyro(0x69);