deactivate specific interrupt
-
I have a sensor attached to a pin and every hour I want to allow it to interrupt execution for e.g. 1min so I can read from it. After that I want to cancel / deactivate that interruption.
Is that possible with Pycom? Anyone suggests an alternative, more efficient, approach?
Thanks in advance! -
@Valter-Roldao Look at pin.callback() https://docs.pycom.io/firmwareapi/pycom/machine/pin/
Using that method you can assign and deassign a callback handler for a pin. -
@robert-hh Thanks!
So, that's the routine I'm using already. the question is, can I stop/pause callbacks for one pin, while keeping others active? I did not find how in the documentation (either pycom or micropython's ) -
@Valter-Roldao said in deactivate specific interrupt:
@robert-hh Thanks!
So, that's the routine I'm using already. the question is, can I stop/pause callbacks for one pin, while keeping others active? I did not find how in the documentation (either pycom or micropython's )thanks my issue has been fixed.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login