unregister interrupt handler (callback)?

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
ikkeT
Posts: 17
Joined: Sat Mar 06, 2021 7:01 pm

unregister interrupt handler (callback)?

Post by ikkeT » Sun Jun 20, 2021 11:42 am

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

User avatar
pythoncoder
Posts: 5274
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: unregister interrupt handler (callback)?

Post by pythoncoder » Mon Jun 21, 2021 8:53 am

I think you can issue Pin.irq with handler=None. However I've never actually tried this.
Peter Hinch

Post Reply