Page 1 of 1

Unregistering an EXTI - pyb

Posted: Sat Nov 02, 2019 9:59 am
by lnsri22
Hello Everyone!!

I am trying to use EXTI with pyb. How do I un register a previously registered interrupt and register it again.

Thanks!!

Re: Unregistering an EXTI - pyb

Posted: Mon Nov 04, 2019 12:48 am
by jimmo
Are you using pyb.ExtInt ? http://docs.micropython.org/en/latest/l ... xtInt.html

You can use the enable and disable methods.

Otherwise if you're using Pin interrupts (i.e. machine.Pin), you can use pin.irq(handler=None) to disable the interrupt.

Re: Unregistering an EXTI - pyb

Posted: Thu Nov 07, 2019 6:02 am
by lnsri22
Thanks for the suggestion!!

Let me give it a try and get back