0

I want to declare SCL and SCK pins like Wire.begin(sda_pin, scl_pin); to use with ESP8266 to integrate a MPU 9250/6500 sensor. I can't figure out a way to declare that in this code exaample provided by https://github.com/bolderflight/MPU9250

in the example of the above it has just passed as Wire to and created object like MPU9250 IMU(Wire,0x68); which was meant to be used with UNO boards(as I think)

And in any case if any of you have seen a library that can be used with the ESP8266 for the MPU 9250/6500 point me on that direction please (I'm trying to get the roll, pitch, yaw)

asked Mar 9, 2020 at 14:29

1 Answer 1

2

You can use Wire.pins(sda, scl); before IMU.begin();. IMU.begin() then calls Wire.begin() without parameters.

answered Mar 9, 2020 at 14:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.