MPU 6050 without sending character for initialize

Hello,

I'm Sorry for only make questions in this forum, I'm a mess...

I'm working with the MPU 6050 code by Jeff Rosberg and I'm trying to avoid the step when the sensor ask for any character to work but I don't find a solution.

Any of you have had this problem? Can you help me?

Thank you!

code / link to code?

I finally found a solution.

If you want to avoid the step you only have to uncomment this lines:

// wait for ready //Serial.println(F("\nSend any character to begin DMP programming and demo: ")); //while (Serial.available() && Serial.read()); // empty buffer //while (!Serial.available()); // wait for data //while (Serial.available() && Serial.read()); // empty buffer again

The code is here: https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino