Skip to content

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

Open
NCPlyn wants to merge 1 commit into
sparkfun:masterfrom
NCPlyn:master
Open

Ability to specify I2C pins in .begin()#23
NCPlyn wants to merge 1 commit into
sparkfun:masterfrom
NCPlyn:master

Conversation

@NCPlyn

@NCPlyn NCPlyn commented Feb 10, 2023

Copy link
Copy Markdown

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

Uspizig commented Sep 26, 2024

Copy link
Copy Markdown

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