Page 1 of 1

unregister interrupt handler (callback)?

Posted: Sun Jun 20, 2021 11:42 am
by ikkeT
Hi,

I was wondering if I know there is surge of interrupts coming due edge triggering, and I'd like to ignore those for the time being, could I somehow unregister the callback, end register it back later?

So far I only found a way to register callback.

BR,
ikke

Re: unregister interrupt handler (callback)?

Posted: Mon Jun 21, 2021 8:53 am
by pythoncoder
I think you can issue Pin.irq with handler=None. However I've never actually tried this.