raspberry-pi-led

2.2.0 • Public • Published

Rasberry Pi LED

The package lets you control 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({ name: 'My red LED', pin: 15 }) // name - optional, pin (required): gpio pin number.
led.initialize()
  .then(() => led.turnOn())
  .then(() => led.turnOff())

License

MIT

Author

Oron Nadiv (oron@nadiv.us)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.2.0
    0
  • 2.1.0
    1
  • 2.0.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i raspberry-pi-led

Weekly Downloads

3

Version

2.2.0

License

MIT

Unpacked Size

8.97 kB

Total Files

5

Last publish

Collaborators

  • oronnadiv