0.0.10 • Published 10 years ago

gpio-js v0.0.10

Weekly downloads
1
License
MIT
Repository
github
Last release
10 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

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago