Push dev work to master #2
|
@ -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