Pin Module Doubts (Solved)
-
Hi, everybody,
I know that I can register an interruption with the callback method, but I don't see that there is a method to disable the interruption. How can I disable an interruption that I have previously registered with the callback method?
pin.init(mode, pull, * , alt)
I don't understand the third argument '*' nor how I can use the fourth argument, the alt function. I also don't understand the difference with this one called p = Pin('P10', mode=Pin.OUT, pull=None, alt=-1), any example with pin.init?I would appreciate any clarification.
Regards,
-
@nespressif Hi, to disable the callback, set the
handlertoNone. It's mentioned on the docs page as well.The
*is the pin value (0or1), I have added that to the docs.altis the functionality of the pin. For normal GPIO, just don't specify it and it'll be handled by the sw. -
@dan said in Pin Module Doubts:
Hi, to disable the callback, set the handler to None. It's mentioned on the docs page as well.
Ok, sorry, I had not see it.
Thank you for your rapid response.
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