Skip to content

Clock Freq isn't being set to max for I2C mode #11

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
JoelEB opened this issue Mar 7, 2017 · 1 comment
Closed

Clock Freq isn't being set to max for I2C mode #11

JoelEB opened this issue Mar 7, 2017 · 1 comment
Assignees

Comments

@JoelEB
Copy link

JoelEB commented Mar 7, 2017

Discovered that the I2C 400000L clock frequency is defined in the hardware.cpp file, but it is never set. Need to add this line below Wire.begin(): Wire.setClock(I2C_FREQ); Makes I2C mode noticeably faster.

@nseidle
Copy link
Member

nseidle commented Dec 9, 2020

I2C frequency should be set by the user in main sketch because we don't know what other, possibly slower, devices may be on the bus. I'm removing define from hardware.cpp.

@nseidle nseidle closed this as completed Dec 9, 2020
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

4 participants