pi-blaster.js

0.1.3 • Public • Published

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).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    1
  • 0.1.1
    1
  • 0.1.0
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i pi-blaster.js

Weekly Downloads

5

Version

0.1.3

License

none

Last publish

Collaborators

  • sarfata