wiringpi-iotjs

Remplementing wiringpi for IoT.js

OTHER License

Stars
1

WIRINGPI-IOTJS

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

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:

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