Pin Module Doubts (Solved)
nespressif last edited by nespressif
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.
nespressif last edited by
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.
dan last edited by
*is the pin value (
1), 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.