Clear ExtInt?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
dastultz
Posts: 20
Joined: Mon Jan 11, 2016 2:56 am

Clear ExtInt?

Post by dastultz » Wed May 25, 2016 1:16 am

Hello,

I've put together a "rapid development cycle" thingy where my main program is a module which I reload without restarting/rebooting. I'm also using ExtInt. It works the first time but crashes on reload because the interrupt is already installed. Is there any way to clear the previous interrupt registered?

Thanks.

/Daryl

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Clear ExtInt?

Post by dhylands » Wed May 25, 2016 1:27 am

Installing a callback of None should disable the interrupt.

dastultz
Posts: 20
Joined: Mon Jan 11, 2016 2:56 am

Re: Clear ExtInt?

Post by dastultz » Wed May 25, 2016 11:14 am

Excellent, that did the trick, thanks.

/Daryl

Post Reply