sync-gpio

0.0.1 • Public • Published

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());
});

Readme

Keywords

none

Package Sidebar

Install

npm i sync-gpio

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • evanxd