Pin 12 not GPIO 18?
This commit is contained in:
parent
996e0ca81a
commit
c8f9236a9d
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
const Gpio = require('onoff').Gpio
|
const Gpio = require('onoff').Gpio
|
||||||
|
|
||||||
const btn = Gpio(18, 'in', 'both')
|
const btn = Gpio(12, 'in', 'both')
|
||||||
|
|
||||||
console.log('Watching input on button 18')
|
console.log('Watching input on button 18')
|
||||||
btn.watch((err, val) => {
|
btn.watch((err, val) => {
|
||||||
|
|
Loading…
Reference in New Issue