-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Missing pin 20 on ESP32 definition #8393
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
Is the reason they don't have it available because it's (1) just not wired through to the outside world; or (2) because it's used internally for something? We had issues in the past where pins were enabled which were used for internal things like SPIRAM and so using them crashed the firmware.
If using this pin on a WROVER/WROOM will not crash the firmware, then yes please! |
looks like it isnt exposed on the QFN of original ESP32's...but what it was used for is unclear |
Would be good if there was already such a define in the IDF, but it doesn't look like there is. Eg in components/soc/esp32/gpio_periph.c: IO_MUX_GPIO19_REG,
IO_MUX_GPIO20_REG, // This corresponding pin is only available on ESP32-PICO-V3 chip package
IO_MUX_GPIO21_REG, So I think just make it available on all ESP32 parts. It should be safe to use it on a package that doesn't expose it, it just won't do anything. |
Fixed by 61c02e6 |
I tried the 20220323 nightly build for MP on the feather esp32 v2 and I no longer get the invalid Pin error with scl = Pin(20)) but I am not able to access my I2C device
It works fine if I move back to scl on Pin(14) I tried a simple test -- connecting Pin 22 (SDA) to Pin 13 (which has a LED on it) then
also reading back pin 20 after setting it to True or False. It always returns 0. Other pins return the expected value
|
Backport the espcamera deinit fix.
hiya for the esp32 pico v3 chip variant of the esp32, pin 20 is exposed:
but in the esp32 board definition this pin isnt available because WROVER and WROOM modules don't have this pin available
https://github.com/micropython/micropython/blob/master/ports/esp32/machine_pin.c#L96
shall i submit a PR to change this so the pin is valid?
The text was updated successfully, but these errors were encountered: