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 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.
-
@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 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.