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
- https://github.com/rzr/wiringpi-iotjs
- https://www.npmjs.com/package/wiringpi
- https://libraries.io/npm/wiringpi-iotjs
- https://github.com/Soarez/node-wiring-pi
- https://www.npmjs.com/package/wiringpi-node
- https://github.com/fengjiannan2010/wiringpi-node
- http://iotjs.net
- https://github.com/~rzr
- https://github.com/Irrelon/node-blinkt
- https://github.com/Irrelon/node-blinkt/pull/15