1.1.0 • Published 8 years ago

salvador v1.1.0

Weekly downloads
1
License
LGPL-3.0
Repository
-
Last release
8 years ago

Salvador

Control lights without knowing a thing about the DALI protocol!

Usage

var salvador = require('salvador')
var backend = require('backend')

var dali = salvador.injectBackend(backend)

dali.allOff()
const stop = dali.blinkBallast(5)
setTimeout(stop, 10000)

Implementing a backend

The functions provided by this library require you to implement a function with the signature dali(address, command, cb?, sentTwice).

  • address: the eight most significant bits of the DALI command
  • command: the least significant bits
  • cb: if present should be called with the DALI response.
  • sentTwice: commands should be sent twice in rapid succession.

Commands must be sent over Dali in the order the dali function is called.

1.1.0

8 years ago

1.0.0

8 years ago

0.0.1-security

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago