Videos
As the title says I'm trying to use interrupt pins for a project that I'm working on.
While learning about how they work I'm getting some very strange results.
I'm using a ESP WROOM 32 and all I have connected right now is a 10k pull-up resistor and a button to pull the pin low. From my research before this all the pins are support GPIO interrupts.
To get to the issue. When I push the button it intermittently works and in the console I see this error.
"Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)." Can post the rest of the console log if needed.
As for my code its very simply.
define pushButton_pin 26
define LED_pin 2
void IRAM_ATTR toggleLED()
{
digitalWrite(LED_pin, !digitalRead(LED_pin));
Serial.println("Interrupt Received");
}
void setup()
{
Serial.begin(115200);
pinMode(LED_pin, OUTPUT);
pinMode(pushButton_pin, INPUT_PULLUP);
attachInterrupt(pushButton_pin, toggleLED, FALLING);
}
void loop() {}
Any help is much appreciated, thank.
Im curious how interrupts work, im seeing various ways but havent seen a simple one i can read and understand
EDIT: i forgot im on espressif-IDE