ESP32 GPIO12
GPIO12 / ADC2_CH5 / TOUCH5 / MTDI
What GPIO12 can do
- Digital input/output
- ADC2 analog input (unusable while Wi-Fi is active)
- Capacitive touch sensing
- PWM output (LEDC)
Warnings for GPIO12
ADC2 unusable with WiFi
ADC2 is used by the WiFi driver. Any analogRead() on an ADC2 pin returns errors while WiFi is active. Use ADC1 pins (GPIO32-39) for analog readings when WiFi is on.
Strapping pin
This pin is sampled at boot to configure the chip. MTDI: if HIGH at boot, the flash voltage is set to 1.8 V. Most modules use 3.3 V flash - driving GPIO12 HIGH at boot will prevent startup. Keep LOW or floating at boot.
Open the interactive ESP32 pinout →All ESP32 pins
GPIO0 · GPIO1 · GPIO2 · GPIO3 · GPIO4 · GPIO5 · GPIO6 · GPIO7 · GPIO8 · GPIO9 · GPIO10 · GPIO11 · GPIO12 · GPIO13 · GPIO14 · GPIO15 · GPIO16 · GPIO17 · GPIO18 · GPIO19 · GPIO21 · GPIO22 · GPIO23 · GPIO25 · GPIO26 · GPIO27 · GPIO32 · GPIO33 · GPIO34 · GPIO35 · GPIO36 · GPIO39
ESP32 Pinout Studio - free interactive pinout reference. Pin data generated from Espressif's official KiCad libraries. esp32pin.com