You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/FunctionalInterrupt/examples/Functional/Functional.ino
+2-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
-
#include<Arduino.h>
2
1
#include<FunctionalInterrupt.h>
2
+
#include<Arduino.h>
3
3
4
4
#if defined(ESP32)
5
5
#defineBUTTON116
@@ -22,8 +22,7 @@ class Button {
22
22
//}, this, FALLING); // works on ESP32; fails on ESP8266: "ISR not in IRAM"
23
23
//attachInterruptArg(PIN, reinterpret_cast<void(*)(void*)>(&isr_static), this, FALLING); // works on ESP32; works on ESP8266
24
24
// FunctionalInterrupts API:
25
-
attachInterrupt(PIN, [this]() { isr(); }, FALLING); // works on ESP32; works on ESP8266
26
-
//attachScheduledInterrupt(PIN, [this](InterruptInfo ii) { Serial.print("Pin "); Serial.println(ii.pin); isr(); }, FALLING); // works on ESP32; works on ESP8266
25
+
attachScheduledInterrupt(PIN, [this](InterruptInfo ii) { Serial.print("Pin "); Serial.println(ii.pin); isr(); }, FALLING); // works on ESP32; works on ESP8266
0 commit comments