-
-
Notifications
You must be signed in to change notification settings - Fork 16
GIGA: I2C setClock does not appear to do anything #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
Comments
To resolve the setClock issue I implemented this piece of code for set Clock in wire.cpp
also had to add this to llext_exports.c
seems to be working for 100khz and 400khz. Tried 1Mhz but my LA read 111khz?? Tested on Wire and Wire1 with the following sketch:
|
Hi Mike, thanks for the investigation! Can I ask you to prepare a PR for the |
Done. If you want to close not an issue |
Using a MPU9250 as my I2c test device I tested using SCL/SDA and SCL1/SDA1. Seems as though i2c clock speed is hardcoded someplace.
SCL/SDA - i2c2
In the overlay default clock is set to fast or 400khz
Setting the clock to 100Khz using setClock(100000) or setClock(i2c_standard) shows an actual clock of 400khz

Setting it 400khz shows same clock

SCL1/SDA1 - i2c4

No default clock is set and seeing 400khz when I do a setclock of 100khz.
EDIT> finally poked around a bit and appears setclock may not be implemented at least I can not find where?
The text was updated successfully, but these errors were encountered: