All of the examples I see of setting up a GPIO pin for use as an interrupt, set the pull to GPIO_NOPULL.
But why? surely it makes sense to pull the pin low or high? Is this done because there's a presumption the pin is never going to be floating?
In my case it is floating, until I manually ground the wire, which fires the interrupt.
If I use NOPULL it is repeatedly triggering, but if I use PULLUP it seems that everything is fine.
But why? surely it makes sense to pull the pin low or high? Is this done because there's a presumption the pin is never going to be floating?
In my case it is floating, until I manually ground the wire, which fires the interrupt.
If I use NOPULL it is repeatedly triggering, but if I use PULLUP it seems that everything is fine.
