1.1.0 • Published 9 years ago

salvador v1.1.0

Weekly downloads
1
License
LGPL-3.0
Repository
-
Last release
9 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

9 years ago

1.0.0

9 years ago

0.0.1-security

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago