node package manager

raspberry-pi-led

Home Automation - Rasberry Pi LED

This package is being used by the home automation project. The package controls the LED (Light-Emitting Diode) state.

NPM version Build Status Test Coverage Dependencies DevDependencies JavaScript Style Guide

Installation (via npm)

$ npm install --save raspberry-pi-led

Usage

This package uses Bluebird's promises. It supports ES5 or later.
The following example uses ES6 features.

const LED = require('raspberry-pi-led')
 
const led = new LED('My red led', 15)
led.initialize()
  .then(() => led.turnOn())
  .then(() => led.turnOff())

License

AGPL-3.0

Author

Oron Nadiv (oron@nadiv.us)