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.
Here is what I've tried so far
1)
#define SS 34
void enableSend() {
Serial.println("SS Enabled");
}
void setup(){
pinMode(SS, INPUT);
attachInterrupt(digitalPinToInterrupt(SS), enableSend, RISING);
}
2)
#define SS 34
void IRAM_ATTR enableSend() {
Serial.println("SS Enabled");
}
void setup(){
pinMode(SS, INPUT);
attachInterrupt(digitalPinToInterrupt(SS), enableSend, RISING);
}
I've used both versions without digitalPinToInterrupt.
What do I need to do to get the interrupts to work? Currently, the enableSend function does not get called when pin 34 is set to high.
If it helps, here is the pinout for the ESP dev bord that I have.
handleInterrupt?