What I have seen is behavior such that if multiple inputs are activated and then deactivated, the interrupt handling routing might not detect the changes.
As a workaround for this, I've added a 2nd poll 50ms after this change. I will note that this change puts front and center a requirement for setTimeout to be in the project. This should not likely be an issue as this project requires that NodeJS be present to run.
For now, the default delay is 50ms and wondering if this should be configurable.
Although this might help, the issue is likely due to bad breadboard connection where interrupt was fired but not detected. Better solution is to setup poll() externally.
What I have seen is behavior such that if multiple inputs are activated and then deactivated, the interrupt handling routing might not detect the changes.
As a workaround for this, I've added a 2nd poll 50ms after this change. I will note that this change puts front and center a requirement for setTimeout to be in the project. This should not likely be an issue as this project requires that NodeJS be present to run.
For now, the default delay is 50ms and wondering if this should be configurable.