-
Notifications
You must be signed in to change notification settings - Fork 15
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
OSError: I2C bus error with example #3
Comments
I have the same problem. The error is: OSError: [Errno 110] ETIMEDOUT As described here: [https://forum.micropython.org/viewtopic.php?f=14&t=9547] The board is an ESP32 Dev KITv1 |
I have encountered the same error and this issue and the aforementioned forum post are the only references to it.
Running the I2C bus with Note that the timeout parameter is only valid for the SoftI2C driver. (If your using a ESP8266, machine.I2C actually aliases machine.SoftI2C) Additionally, I believe having a timeout of 151ms may trigger your watchdog timer if your are using one. |
Will definitely try this tomorrow. |
I've been testing this for the last 10 days: SoftI2C with SCD30 init with With this config there are no problems for the moment |
For me setting the baud rate back to 40.000 has no effect. I now just catch the error and then continue, which is not optimal, but works. This is on the Gpy from Pycom |
Ah that's a shame. Just to confirm, you did try changing the timeout to 151000us with a SoftI2C object? (151ms, default is 255us) |
I'd love to will it not that Pycom firmware does not support a timeout in its I2C object. https://docs.pycom.io/firmwareapi/pycom/machine/i2c/ I thought it had something to do with clock stretching... You can see the following issue I posted on this: |
This error occurred on a Pycom Wipy
code I used:
Results in the following output:
The text was updated successfully, but these errors were encountered: