Last active
August 29, 2015 14:05
-
-
Save ikr7/d05371ab05efdcf180ac to your computer and use it in GitHub Desktop.
いいかんじ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GPIO = require('./gpio.js'); | |
var watcher = GPIO.watcher(50); | |
watcher.watch('P9_23'); | |
watcher.on(GPIO.high('P9_23'), function(){ | |
console.log('High!!!'); | |
}); | |
watcher.on(GPIO.low('P9_23'), function(){ | |
console.log('Low!!!!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment