Private
Public Access
2
0

isr.js: add node.js isr example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-02-18 14:30:22 +00:00
parent 008184c305
commit d6891e8bd7
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env node
var m = require('mraa')
function h() {
console.log("HELLO!!!!")
}
x = new m.Gpio(14)
x.isr(m.EDGE_BOTH, h)