-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interrupt pins can be configured as INPUT only without PULLUP/PULLDOWN feature #464
Comments
Hi, pullup/down can be controlled with |
Hi, |
Sorry for the delay. Apologize, not sure I got it, if _interrupt_1_initial is set e.g. to HIGH through setPinInitialValue() this should be the same as having INPUT_PULLUP (but just for a very short time between the two instructions that you pointed out). Output will then stay HIGH and so you will be able to get notified once it will go LOW but I'm probably missing something. Thanks! |
The interrupt pins are configured as INPUT in NodeManager::_setupInterrupts() method, this method is called after onSetup of any sensor, than is not possible to change the set of mode of pin to INPUT_PULLUP/INPUT_PULLDOWN in onSetup() sensor method.
The only workarount solution is to change the set of pin in setup() application function after the call of nodeManager.setup()
// setup
void setup() {
// call NodeManager setup routine
nodeManager.setup();
pinMode(INTERRUPT_PIN_1, INPUT_PULLUP);
}
The text was updated successfully, but these errors were encountered: