diff --git a/tests/gpio.js b/tests/gpio.js index 5638932..56d4a76 100644 --- a/tests/gpio.js +++ b/tests/gpio.js @@ -6,13 +6,13 @@ const btn = Gpio(5, 'in', 'both') console.log('Watching input on GPIO 05') -/*btn.watch((err, val) => { +btn.watch((err, val) => { if (err) { return console.error(err) } console.log(val) -})*/ +}) -setInterval(() => { +/*setInterval(() => { console.log(btn.readSync()) -}, 1000) \ No newline at end of file +}, 1000)*/ \ No newline at end of file