You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a membrane button, one lead to ground, other to GPIO 12. Code below. Problem is that I occasionally get multiple events when I click the button...
var Gpio = require('pigpio').Gpio;
var button1 = new Gpio(12, {
mode: Gpio.INPUT,
pullUpDown: Gpio.PUD_UP,
edge: Gpio.FALLING_EDGE
});
button1.on('interrupt', function (level) {
if (level === 0) {
console.log("Button1 Pressed!");
}
});
The text was updated successfully, but these errors were encountered:
I am using a membrane button, one lead to ground, other to GPIO 12. Code below. Problem is that I occasionally get multiple events when I click the button...
The text was updated successfully, but these errors were encountered: