ESP32 GPIO15
Everything you need to use this pin correctly: status, alternate functions, boot-time cautions and working code.
| Status | Usable |
|---|---|
| Alternate functions | ADC2_CH3TOUCH3HSPI CS0JTAG TDO |
| Chip | ESP32 pinout |
Watch out:
- Strapping pin: its level is latched at power-up to configure boot behaviour. Do not attach anything that changes its reset state.
- This is an ADC2 channel, which becomes unavailable while Wi-Fi is running — use an ADC1 channel for reliable sampling.
Practical notes
Strapping pin (MTDO), also HSPI CS0 / ADC2_CH3 / TOUCH3. It must be high at power-up and also gates ROM boot-log printing. Verify its power-on state before using it as an SPI chip select.
Sample code
// Arduino
const int PIN = 15;
void setup() {
Serial.begin(115200);
analogReadResolution(12);
// set attenuation before measuring higher voltages
analogSetAttenuation(ADC_11db);
}
void loop() {
int raw = analogRead(PIN);
Serial.println(raw);
delay(1000);
}
Data verified:2026-10-20 · Cross-checked against Espressif documentation. Always confirm against the official datasheet before finalizing a design. Official docs →