Try_again — ESP32 simulation

s

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by 2430206.

Sketch code

void setup() {
  Serial.begin(115200);
  Serial.println("Escaneando pines...");
}

void loop() {
  // Lista de los pines GPIO más comunes en el ESP32
  int pines[] = {4, 5, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27};
  
  for (int i = 0; i < 16; i++) {
    pinMode(pines[i], INPUT_PULLUP);
    
    // pulseIn espera hasta 15 milisegundos a ver si el pin cambia de estado
    if (pulseIn(pines[i], LOW, 15000) > 0) {
      Serial.print("¡BINGO! Señal entrando por el GPIO: ");
      Serial.println(pines[i]);
      delay(1000); 
    }
  }
}