In port ESP32, why is pin GPIO 20 not valid? #9375
Answered
by
jimmo
mitchb1
asked this question in
Hardware & Peripherals
-
In /micropython/ports/esp32/machine_pin.c GPIO 20 is null. Why is that? On Adafruit ESP32 Feather V2 it is used for I2C SCL. |
Beta Was this translation helpful? Give feedback.
Answered by
jimmo
Sep 21, 2022
Replies: 1 comment
-
The line you mentioned explains what's going on: #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 2)
{{&machine_pin_type}, GPIO_NUM_20},
#else
{{NULL}, -1},
#endif It needs to be compiled with IDF 4.4+ Unfortunately we still use IDF 4.2 for the releases due to an issue with memory fragmentation on the higher IDF versions. You can compile it yourself though, and as long as you're not using SSL it will be fine. (More info at #8940) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mitchb1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The line you mentioned explains what's going on:
It needs to be compiled with IDF 4.4+
Unfortunately we still use IDF 4.2 for the releases due to an issue with memory fragmentation on the higher IDF versions. You can compile it yourself though, and as long as you're not using SSL it will be fine. (More info at #8940)