Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sarfata/pi-blaster.js
NodeJS module to control pi-blaster
https://github.com/sarfata/pi-blaster.js
Last synced: 17 days ago
JSON representation
NodeJS module to control pi-blaster
- Host: GitHub
- URL: https://github.com/sarfata/pi-blaster.js
- Owner: sarfata
- License: mit
- Created: 2013-02-12T10:27:55.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T04:22:52.000Z (about 7 years ago)
- Last Synced: 2024-04-26T04:04:58.830Z (8 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 106
- Watchers: 13
- Forks: 26
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
pi-blaster.js
=============NodeJS library for the [pi-blaster daemon][pi-blaster].
## Installation
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
## Usage
var piblaster = require('pi-blaster.js');
piblaster.setPwm(17, 1 ); # 100% brightness
piblaster.setPwm(22, 0.2 ); # 20% brightness
piblaster.setPwm(23, 0 ); # offThe list of available pin numbers [is located here:](https://github.com/sarfata/pi-blaster/blob/master/pi-blaster.c#L39-51)
## Contributions
* [Frédéric Woelffel](https://github.com/FWoelffel) added callback support
## License
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