0.8.0 • Published 8 years ago

zetta-rgb-bonescript-driver v0.8.0

Weekly downloads
13
License
MIT
Repository
github
Last release
8 years ago

Control an RGB LED using Zetta and bonescript!

Install

$> npm install zetta-rgb-bonescript-driver

Usage

var zetta = require('zetta');
var LED = require('zetta-rgb-bonescript-driver');

zetta()
  .use(LED)
  .listen(1337)

// or define custom pins

var zetta = require('zetta');
var LED = require('../index');

zetta()
  .use(LED, { rLed: 'P9_23', gLed: 'P9_25', bLed: 'P9_27' })
  .listen(1337);

Hardware

Hookup Diagram

Transitions

#toggleRed

No arguments. Turns the red led on or off. Depends on state.

toggleGreen

No arguments. Turns the green led on or off. Depends on state.

toggleBlue

No arguments. Turns the blue led on or off. Depends on state.

setColor

Hex string color code. Sets led color based on string passed in.

0.8.0

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

9 years ago

0.6.0

9 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.0.0

10 years ago