From 9b1c660ae6d76c87f544e000fd0283a323be8bfb Mon Sep 17 00:00:00 2001 From: nalbam Date: Wed, 21 Aug 2019 02:10:42 +0900 Subject: [PATCH] EDGE_BOTH --- server.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server.js b/server.js index be24240..66f1189 100644 --- a/server.js +++ b/server.js @@ -75,9 +75,9 @@ gpio.on('change', function (channel, value) { io.sockets.emit('call', 'clear'); } }); -gpio.setup(7, gpio.DIR_IN); -gpio.setup(29, gpio.DIR_IN); -gpio.setup(31, gpio.DIR_IN); -gpio.setup(33, gpio.DIR_IN); -gpio.setup(35, gpio.DIR_IN); -gpio.setup(37, gpio.DIR_IN); +gpio.setup(7, gpio.DIR_IN, gpio.EDGE_BOTH); +gpio.setup(29, gpio.DIR_IN, gpio.EDGE_BOTH); +gpio.setup(31, gpio.DIR_IN, gpio.EDGE_BOTH); +gpio.setup(33, gpio.DIR_IN, gpio.EDGE_BOTH); +gpio.setup(35, gpio.DIR_IN, gpio.EDGE_BOTH); +gpio.setup(37, gpio.DIR_IN, gpio.EDGE_BOTH);