Dear Colleagues
My code is as follows:
detachInterrupt(digitalPinToInterrupt(4));
detachInterrupt(digitalPinToInterrupt(16));
But even after these commands interrupt is still active
Kindly ask you to show real working example for edactivation of interrupt (ESP32)
Thank you
5 Answers
attachInterrupt(digitalPinToInterrupt(4),INT0, FALLING);
attachInterrupt(digitalPinToInterrupt(16),INT1, FALLING);
activation in Setup
deactivation in Loop
is it correct ?
Hi.
Have you tried using the dettach interrupt like this:
detachInterrupt(16);
Does it work this way?
Regards,
Sara