Pin 12 not GPIO 18?

This commit is contained in:
mmcwilliams 2017-09-16 14:51:37 -04:00
parent 996e0ca81a
commit c8f9236a9d
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {