Giter Club home page Giter Club logo

pi-blaster.js's Introduction

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

pi-blaster.js's People

Contributors

sarfata avatar fwoelffel avatar bkomac avatar lgaljo avatar spuder avatar stefanomasini avatar xinkaiwang avatar

Stargazers

 avatar hinako avatar Sean Clancy avatar frankfanslc avatar  avatar Joel avatar James Beavers avatar  avatar David MiZak avatar Igor Kilipenko avatar Greg Herlein avatar nil avatar leonid kozhukh avatar Alexii Carey avatar Eugene Ware avatar  avatar  avatar Berto Yáñez avatar Bartosz Jakubowiak avatar  avatar Luke Alex Reeve avatar  avatar Lucas Lago avatar Nate Martin avatar Kwaku avatar  avatar The Alchemist avatar zhujianfeng avatar lvxin avatar Denkan avatar Xavier Baldacci avatar Andrey Sidorov avatar  avatar Kyle King avatar Carter Hesterman avatar siriusjack avatar Vince Elizaga avatar Abhishek Maharjan avatar David Brown avatar James Blashill avatar Seb Lee-Delisle avatar Michal J A Paszkiewicz avatar Andy Payne avatar Thomas avatar  avatar  avatar  avatar Mike Pastore avatar Dick Verbunt avatar  avatar Angus H. avatar benqiang avatar Linyi Xia avatar Chris Inch avatar Lee McKay avatar  avatar Rodolfo Valguarnera avatar Márcio Paulo Guedes avatar Ricardo Barros avatar Adam Larner avatar Michael Anthony avatar AngularNinja.com avatar icode avatar Bryan Clark avatar Nathan Rajlich avatar Konstantin avatar Drew Harwell avatar Cord Slatton avatar Iván Sánchez Ortega avatar Mackie Underdown avatar Leonardo Couto avatar  avatar Mahdi Abdolmaleki avatar Andy Smith avatar Pablo Alejandro Costesich avatar Colby Rome avatar Feroze Shahpurwala avatar Damian Acevedo avatar Martin PANEL avatar  avatar Valentin Squirelo avatar Pavel Golovin avatar  avatar anthony tran avatar Ben Moren avatar Alan Yorinks avatar Micah Ransdell avatar Chu Hung Lin avatar Shawn Ostler avatar Amber Adams avatar Gergely Nemeth avatar Sean Bohan avatar Jan-C. Przybilla avatar JT5D avatar Andreas Simon avatar DDH avatar Harri Ohra-aho avatar Jason Miller avatar  avatar Oliver Northam avatar

Watchers

James Scott, Jr avatar tom zhou avatar Cord Slatton avatar  avatar James Cloos avatar Mansur S avatar Michael Anthony avatar  avatar Márcio Paulo Guedes avatar  avatar Pavel Golovin avatar  avatar Kwaku avatar

pi-blaster.js's Issues

pi-blaster works but pi-blaster.js does not

I have attempted to use the pi-blaster.js and have tried everything I can think of to debug it...I have followed the examples with no luck.

When I use pi-blaster directly from the command line everything works fine, I can send pwm signals. When I attempt to use pi-blaster.js from within a very simple nodejs application of even at the node console nothing happens.

Controlling the Pi-Blaster.js from a web page

I am working towards controlling a set of RGB Led strips... As the Pi will be worked away somewhere I wonder if you guys know a easy way to call upon the pi-blaster.js from afar...
ie. ledHQ.mywebsite.com
Something doesnt want to work...
Situation is currently that the pi shows a slideshow hosted on a website...
It does that through a borderless Chromium.
I'd prefer to use a chromium accesible website :)

Add function to turn pins off

Currently there is no function to release pins. Something like the following function would work:

releasePin: function(pinNumber) {
    writeCommand("release " + pinNumber);
}

Deprecation warning

With Node 7.0.0, you get the following:
(node:902) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
I've tried supplying a callback as a third parameter, but alas it's not working.

Multiple accurate PWM signals simultaneously?

Hi :)

I'm developing a Raspberry Pi Node.js quadcopter.

Will the pi-blaster and it's Node.js binding allow me to produce 4 different, maximally accurate, hardware PWM signals at the same time, over any of the Pi's GPIO pins?

Thanks man :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.