Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit 996e0ca81a - Show all commits

13
tests/gpio.js Normal file
View File

@ -0,0 +1,13 @@
'use strict'
const Gpio = require('onoff').Gpio
const btn = Gpio(18, 'in', 'both')
console.log('Watching input on button 18')
btn.watch((err, val) => {
if (err) {
return console.error(err)
}
console.log(val)
})