We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I use wpi.wiringPiISR(this.switchpin, wpi.INT_EDGE_RISING, this.toggle.bind(this)); to connect to a switch button and toggle a light.
wpi.wiringPiISR(this.switchpin, wpi.INT_EDGE_RISING, this.toggle.bind(this));
But I get bounce. Usually I [Arduino] software-debounce with
if (digitalRead(pin)) { delay(25); if (digitalRead(pin)) { toggle(); } }
How is that best done on node? with wpi.delay(25)? or setTimeout(function() {}, 25);?
wpi.delay(25)
setTimeout(function() {}, 25);
THANKS
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use
wpi.wiringPiISR(this.switchpin, wpi.INT_EDGE_RISING, this.toggle.bind(this));
to connect to a switch button and toggle a light.
But I get bounce. Usually I [Arduino] software-debounce with
How is that best done on node? with
wpi.delay(25)
? orsetTimeout(function() {}, 25);
?THANKS
The text was updated successfully, but these errors were encountered: