2014-04-24 17:53:07 +00:00
|
|
|
"use strict"
|
|
|
|
|
|
|
|
var DMX = require('./dmx');
|
|
|
|
var A = DMX.Animation;
|
|
|
|
|
|
|
|
var dmx = new DMX();
|
2016-04-09 16:08:19 +00:00
|
|
|
// var universe = dmx.addUniverse('demo', 'enttec-open-usb-dmx', '/dev/cu.usbserial-6AVNHXS8')
|
2014-04-24 17:53:07 +00:00
|
|
|
var universe = dmx.addUniverse('demo', 'null')
|
|
|
|
|
|
|
|
var on = false;
|
|
|
|
setInterval(function(){
|
|
|
|
if(on){
|
|
|
|
on = false;
|
|
|
|
universe.updateAll(0);
|
|
|
|
console.log("off");
|
|
|
|
}else{
|
|
|
|
on = true;
|
|
|
|
universe.updateAll(250);
|
|
|
|
console.log("on");
|
|
|
|
}
|
2016-04-09 16:08:19 +00:00
|
|
|
}, 1000);
|