-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Unable to use pin 20 as SCL for I2C on ESP32. #8440
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
This is evidently definitely related to the EDP IDF. MicroPython would need to be built with v4.4 to get pin 20 to work properly. I will make a note in our documentation that as-is, pin 20 won't work with MicroPython. If you have any plans for updating the ESP IDF, please let me know here. Regardless, feel free to close this issue if it is not worth continuing to track. |
We do need to fix/improve the build with IDF 4.4 so all boards can use this latest IDF version. The main thing is to support multiple heaps in the GC, #3580. |
FYI -- with my feather esp32 V2 I am experiencing a different issue: I can configure I2C with scl on Pin 20: I have loaded esp32spiram-20220323-unstable-v1.18-244-g66fe3d5cb.bin
but then any attempt to utilize the i2c bus fails:
an i2c.scan() just hangs:
I had to power cycle the board to continue. with nothing connected to Pin 20, I am not able to reliably control the output state
I don't know why my results differ from those reported by @kattni Also note, that if I move scl to Pin 14, everything works normally.
|
I also get an "OSError: [Errno 116] ETIMEDOUT" with a "feather esp32 V2" and MicroPython v1.19.1 |
…ation Dotclock: fix overscan and rotation
I submitted the fix to #8393 to expose pin 20 on ESP32. On the Adafruit Feather ESP32 V2, SCL is pin 20. I loaded the latest nightly build onto my board. I am running into the following issues.
When trying to initalise I2C, it is not accepting pin 20 as a viable option for SCL.
I2C set up works with pin 14 as SCL.
If I try to simply init pin 20 as an output, it also fails.
@jepler suggested that perhaps the issue is resolved in the ESP IDF v4.4, but an attempt to build MicroPython with that version resulted in a failure to fit in flash. So, I have not tested this possibility.
The text was updated successfully, but these errors were encountered: