0.0.1 • Published 8 years ago

sync-gpio v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

sync-gpio

sync-gpio is a node library helps developer control GPIO pins on Raspberry Pi eaiser and faster.

Sample Code

Press a button to light on a LED.

var gpio = require('sync-gpio');
var led = new gpio.Pin(gpio.PIN17, gpio.OUTPUT);
var button = new gpio.Pin(gpio.PIN18, gpio.INPUT);

button.on('data', function(value) {
  led.val(value);
  console.log('LED Pin: ' + led.val());
});