Skip to content
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

How to use with I2C1 #1

Open
bigguiness opened this issue Apr 22, 2021 · 1 comment
Open

How to use with I2C1 #1

bigguiness opened this issue Apr 22, 2021 · 1 comment

Comments

@bigguiness
Copy link

It appears this library is setup to use the I2C0 port.

I would like to use it with a Teensy 3.2 board's I2C1 port.

Is there a way to do this without forking the code?

@bigguiness
Copy link
Author

Hmm... Looks like it just needs:

  1. pointer to the TwoWire port in the class definition
  2. modify the begin() methods to provide the TwoWIre port
  3. modify the Wire code to use the pointer

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

No branches or pull requests

1 participant