0.0.10 • Published 8 years ago

gpio-js v0.0.10

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

GPIO.JS

GPIO.JS is a node library helps developer control GPIO eaiser and faster on Raspberry Pi or other boards supported Node.js.

Get Started

Install

npm install gpio-js

Blink an LED

var GPIO = require('gpio-js');
var led = new GPIO(44, 'out');

setInterval(function() {
  led.val(1 - led.val());
}, 1000);

Features

Event-driven Model to Get GPIO Pin Status

var GPIO = require('gpio-js');
var button = new GPIO(18, 'in');

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

Supported Boards

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago