Things are not so clear if you use attach/detachInterrupt() ![]()
I'd only attach the interrupt once, and never detach it. For deactivation use a global flag, that can be tested in the handler.
Things are not so clear if you use attach/detachInterrupt() ![]()
I'd only attach the interrupt once, and never detach it. For deactivation use a global flag, that can be tested in the handler.