devices configuration removed from file and into library

This commit is contained in:
Nikoli Daigneault 2015-11-04 10:46:13 -05:00 committed by Sebastian Wiedenroth
parent 14f33da4dc
commit 31c6fd1290

4
dmx.js
View file

@ -3,9 +3,10 @@
var util = require('util')
var EventEmitter = require('events').EventEmitter
function DMX() {
function DMX(devices) {
this.universes = {}
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) {