Skip to content

Ability to specify I2C pins in .begin() #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NCPlyn
Copy link

@NCPlyn NCPlyn commented Feb 10, 2023

Would be nice if we could specify what pins should I2C use, so I came up with this.
If anybody knows better way, please show.

@Uspizig
Copy link

Uspizig commented Sep 26, 2024

just place a Wire.begin(SDA, SCL) before the myIMU begin(); and it should work.

Should look like this:
#define SDA2 5
#define SCL2 6

Wire.begin(SDA2,SCL2);
myIMU.begin();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants