kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.04k stars 471 forks source link

Changing I2C port #110

Open huakhee opened 7 years ago

huakhee commented 7 years ago

Dear Kris,

Excellent piece of work, I really appreciate your attention to details. Definitely buy you a beer when I am up in SF.

Anyway, I am still very new in mbed or arduino whilst I was scanning through your MPU9250.h file i realise a line of I2C i2c (I2C_SDA, I2C_SCL);

However, there in your main.cpp there is no definition for the I2C port. Hence, I wonder how to do you change your I2C port? Was it built-in function through the fancy whoiam coding?

I have been go through your example code for hours to no avail so I reckon it will be quicker if I just ask the maker. Haha. Thank you.

Look forward for your response.

HK

kriswiner commented 7 years ago

If you are using the code intended to run on mbed then it is probably in the MPU9250.h file. I am not a C programmer so I abused the normal libraty conventions to get something to work on mbed, which I found quite a difficult envronment to work in. I prefer Arduino IDE if I can.

Kris

On Fri, Jan 6, 2017 at 4:41 PM, huakhee notifications@github.com wrote:

Dear Kris,

Excellent piece of work, I really appreciate your attention to details. Definitely buy you a beer when I am up in SF.

Anyway, I am still very new in mbed or arduino whilst I was scanning through your MPU9250.h file i realise a line of I2C i2c (I2C_SDA, I2C_SCL);

However, there in your main.cpp there is no definition for the I2C port. Hence, I wonder how to do you change your I2C port? Was it built-in function through the fancy whoiam coding?

I have been go through your example code for hours to no avail so I reckon it will be quicker if I just ask the maker. Haha. Thank you.

Look forward for your response.

HK

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU-9250/issues/110, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qtAQ2gSEC6fW7pl0cHP-KngC_cFYks5rPt8wgaJpZM4LdQ2k .