dmx-flok/drivers/null.js
Sebastian Wiedenroth 39ed74ddc0 basic web interface
2012-09-08 14:43:04 +02:00

19 lines
295 B
JavaScript

exports.init = function(dev_id) {
var universe = new Buffer(512)
universe.fill(0)
this.update = function(u) {
for(var k in u) {
universe[k] = u[k]
}
}
this.get = function(k) {
return universe[k];
}
setInterval(function() {
console.log(universe);
}, 1000);
return this;
}