Skip to content

Add functionality to change i2c clock speed #224

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

Closed
wants to merge 2 commits into from

Conversation

bigdinotech
Copy link
Contributor

-add functionality to change i2c clock speed using Wire.begin() or Wire.setClock()
-increased i2c performance by reducing delay amount in the timeout loop

-reduce i2c delays to increase performace without changing the timeout
threshold
-adds functionality to change clock speed
-clock speed is set/changed when Wire.begin() is called
-default is standard mode
-use Wire.begin() for standard speed (100k)
-use Wire.begin(I2C_SPEED_FAST) for full speed (400k)
-use Wire.setClock(I2C_SPEED_FAST) for full speed (400k)
@bigdinotech
Copy link
Contributor Author

@SidLeung @eriknyquist ready for review

@eriknyquist
Copy link
Contributor

Looks good to me.

@calvinatintel
Copy link
Contributor

cherry-picked

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.

3 participants