-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Functional interrupt #1728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional interrupt #1728
Conversation
Please add example :) |
I will make the example. |
https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples |
Your example doesn't actually work, it only ever calls button2's interrupt. It fails to compile when renaming isr to isr2, forcing it to use the function with the void* arg parameter instead of the overloaded isr function.
Results in |
@Elijahg : The sketch in your post works for me. You post this in the Functional Interrupt PR, however your sketch doesn't use that functionality. Using functional interrupt you can do f.e.
|
Add the functional option to attachInterrupt.
Implementation is similar to ESP8266