wiringpi-iotjs

Abstract Wiring API for IoT.js (reimplemented in js)


Keywords
wiringPi, gpio, raspberry, pi, raspberrypi, bcm2835, iotjs, iotjs-module
License
BSD-3-Clause
Install
npm install wiringpi-iotjs@0.0.6

Documentation

WIRINGPI-IOTJS

GitHub forks License NPM IRC Channel

Lightweight reimplentation of wiring-node for IoT.js,

WARNING: it's not isofunctionnal, many features are dropped, but API should align to help porting Node.js modules to IoT.js

NPM

USAGE

USING IOTJS

Running from sources tree is straightforward, but each step will be detailed.

git clone --depth 1 https://github.com/rzr/wiringpi-iotjs ; cd wiringpi-iotjs
iotjs example
#| GPIO: Setup: pin=5: direction=1
#| GPIO: write: high: pin=5
#| GPIO: write: low: pin=5

DEMO

iotjs example

Or using more advanced device:

wiringpi-iotjs

USING NODEJS

Node is not yet supported but for debugging purpose, gpio calls can be stubbed.

EXTRA

An extra I2C API has been added to ensure compatibility between IoT.js and Node.js.

RESOURCES