2.2.0 • Published 5 years ago

raspberry-pi-led v2.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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)

2.2.0

5 years ago

2.1.0

6 years ago

2.0.0

7 years ago

1.0.0

8 years ago