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,



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



  • @nespressif Hi, to disable the callback, set the handler to None. It's mentioned on the docs page as well.

    The * is the pin value (0 or 1), I have added that to the docs. alt is the functionality of the pin. For normal GPIO, just don't specify it and it'll be handled by the sw.


 

Hello World?

Pylife on Kickstarter - November 2018








Back Us On Kickstarter >

Pycom on Twitter