A node.js library for the pi-blaster daemon - Allows PWM control of the raspberry Pi pins
npm install pi-blaster.jspi-blaster.js
=============
NodeJS library for the [pi-blaster daemon][pi-blaster].
Make sure you have node and npm installed on your Raspberry Pi.
Install the pi-blaster daemon ([instructions][pi-blaster]).
Finally install pi-blaster.js:
npm install pi-blaster.js
var piblaster = require('pi-blaster.js');
piblaster.setPwm(17, 1 ); # 100% brightness
piblaster.setPwm(22, 0.2 ); # 20% brightness
piblaster.setPwm(23, 0 ); # off
The list of available pin numbers is located here:
* Frédéric Woelffel added callback support
Copyright 2013 - Thomas Sarlandie. Published under the MIT open source license (see full license in LICENSE.txt file).
[pi-blaster]: https://github.com/sarfata/pi-blaster