From c8f9236a9dcf63a136068578821d0d72cb3355c8 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sat, 16 Sep 2017 14:51:37 -0400 Subject: [PATCH] Pin 12 not GPIO 18? --- tests/gpio.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gpio.js b/tests/gpio.js index e87745c..e452b42 100644 --- a/tests/gpio.js +++ b/tests/gpio.js @@ -2,7 +2,7 @@ const Gpio = require('onoff').Gpio -const btn = Gpio(18, 'in', 'both') +const btn = Gpio(12, 'in', 'both') console.log('Watching input on button 18') btn.watch((err, val) => {