Try gpio05
This commit is contained in:
parent
47abb3b8e5
commit
28810e761d
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
const Gpio = require('onoff').Gpio
|
const Gpio = require('onoff').Gpio
|
||||||
|
|
||||||
const btn = Gpio(18, 'in', 'both')
|
const btn = Gpio(5, 'in', 'both')
|
||||||
|
|
||||||
console.log('Watching input on button 18')
|
console.log('Watching input on GPIO 05')
|
||||||
|
|
||||||
/*btn.watch((err, val) => {
|
/*btn.watch((err, val) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in New Issue