forked from soarez/node-wiring-pi
-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
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
if (digitalRead(pin)) {
delay(25);
if (digitalRead(pin)) {
toggle();
}
}
How is that best done on node? with wpi.delay(25)? or setTimeout(function() {}, 25);?
THANKS
Metadata
Metadata
Assignees
Labels
No labels