devices configuration removed from file and into library
This commit is contained in:
parent
14f33da4dc
commit
31c6fd1290
1 changed files with 3 additions and 3 deletions
6
dmx.js
6
dmx.js
|
@ -3,9 +3,10 @@
|
|||
var util = require('util')
|
||||
var EventEmitter = require('events').EventEmitter
|
||||
|
||||
function DMX() {
|
||||
function DMX(devices) {
|
||||
this.universes = {}
|
||||
this.drivers = {}
|
||||
this.drivers = {}
|
||||
this.devices = devices
|
||||
|
||||
this.registerDriver('null', require('./drivers/null'))
|
||||
this.registerDriver('enttec-usb-dmx-pro', require('./drivers/enttec-usb-dmx-pro'))
|
||||
|
@ -14,7 +15,6 @@ function DMX() {
|
|||
|
||||
util.inherits(DMX, EventEmitter)
|
||||
|
||||
DMX.devices = require('./devices')
|
||||
DMX.Animation = require('./anim')
|
||||
|
||||
DMX.prototype.registerDriver = function(name, module) {
|
||||
|
|
Loading…
Reference in a new issue