title: Interrupts function not called with ESP32 Arduino
body: <p>I am using the ESP32 dev board with the Arduino and wish to use an interrupt to determine if a master device has sent the Slave Select flag to the ESP32.</p>
  
  <p>Here is what I've tried so far</p>
  
  <p>1)</p>
  
  <pre><code>#define SS 34
  
  void enableSend() {
      Serial.println("SS Enabled");
  }
  
  void setup(){
    pinMode(SS, INPUT);
    attachInterrupt(digitalPinToInterrupt(SS), enableSend, RISING);
  }
  </code></pre>
  
  <p>2)  </p>
  
  <pre><code>#define SS 34
  
  void IRAM_ATTR enableSend() {
      Serial.println("SS Enabled");
  }
  
  void setup(){
    pinMode(SS, INPUT);
    attachInterrupt(digitalPinToInterrupt(SS), enableSend, RISING);
  }
  </code></pre>
  
  <p>I've used both versions without <code>digitalPinToInterrupt</code>. </p>
  
  <p>What do I need to do to get the interrupts to work? Currently, the <code>enableSend</code> function does not get called when pin 34 is set to high.</p>
  
  <p>If it helps, <a href="https://circuits4you.com/2018/12/31/esp32-devkit-esp32-wroom-gpio-pinout/" rel="nofollow noreferrer">here</a> is the pinout for the ESP dev bord that I have.</p>