Skip to content

sarfata/pi-blaster.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-blaster.js

NodeJS library for the pi-blaster daemon.

Installation

Make sure you have node and npm installed on your Raspberry Pi.

Install the pi-blaster daemon (instructions).

Finally install pi-blaster.js:

npm install pi-blaster.js

Usage

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:

Contributions

License

Copyright 2013 - Thomas Sarlandie. Published under the MIT open source license (see full license in LICENSE.txt file).

About

NodeJS module to control pi-blaster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published