8000 esp32/machine_pin: Expose pin 20 for ESP32. · micropython/micropython@61c02e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 61c02e6

Browse files
kattnidpgeorge
authored andcommitted
esp32/machine_pin: Expose pin 20 for ESP32.
This pin is available on some ESP32 packages. Signed-off-by: Kattni Rembor <kattni@adafruit.com>
1 parent afceb56 commit 61c02e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ports/esp32/machine_pin.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ STATIC const machine_pin_obj_t machine_pin_obj[] = {
9292
#endif
9393
{{&machine_pin_type}, GPIO_NUM_18},
9494
{{&machine_pin_type}, GPIO_NUM_19},
95+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
96+
{{&machine_pin_type}, GPIO_NUM_20},
97+
#else
9598
{{NULL}, -1},
99+
#endif
96100
{{&machine_pin_type}, GPIO_NUM_21},
97101
{{&machine_pin_type}, GPIO_NUM_22},
98102
{{&machine_pin_type}, GPIO_NUM_23},
@@ -560,7 +564,11 @@ STATIC const machine_pin_irq_obj_t machine_pin_irq_object[] = {
560564
#endif
561565
{{&machine_pin_irq_type}, GPIO_NUM_18},
562566
{{&machine_pin_irq_type}, GPIO_NUM_19},
567+
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
568+
{{&machine_pin_irq_type}, GPIO_NUM_20},
569+
#else
563570
{{NULL}, -1},
571+
#endif
564572
{{&machine_pin_irq_type}, GPIO_NUM_21},
565573
{{&machine_pin_irq_type}, GPIO_NUM_22},
566574
{{&machine_pin_irq_type}, GPIO_NUM_23},

0 commit comments

Comments
 (0)
0