Home / ESP32-H2 / GPIO26

ESP32-H2 GPIO26

Everything you need to use this pin correctly: status, alternate functions, boot-time cautions and working code.

StatusUsable
Alternate functionsUSB D− (USB Serial/JTAG)
ChipESP32-H2 pinout
Watch out:
  • Native USB pin. Using it as ordinary IO disables USB download and debugging.

Practical notes

USB D− (USB Serial/JTAG). The H2 places USB on 26/27 for direct USB flashing; using it as GPIO disables USB-JTAG.

Sample code

// Arduino
const int PIN = 26;

void setup() {
  pinMode(PIN, OUTPUT);
}

void loop() {
  digitalWrite(PIN, HIGH);
  delay(500);
  digitalWrite(PIN, LOW);
  delay(500);
}
Data verified:2026-10-20 · Cross-checked against Espressif documentation. Always confirm against the official datasheet before finalizing a design. Official docs →

Related