linkit-smart-gpio
v0.0.3
Published
NodeJS gpio module use for linkit smart board
Downloads
10
Readme
linkit-smart-gpio
var gpio = require('linkit-smart-gpio');
gpio.register('16', 'output');
gpio.register('15', 'input');
// light pin 16
gpio.send('16', function(){
gpio.high();
});
// read pin 15
gpio.read('15', 200, function(data){
console.log(data)
});