2012-09-01 12:17:39 +00:00
|
|
|
var drv = require('./drivers/enttec-usb-dmx-pro.js');
|
|
|
|
universe = new drv.init(0);
|
2012-09-02 12:36:08 +00:00
|
|
|
universe.update({0: 1, 1: 0})
|
2012-09-01 12:17:39 +00:00
|
|
|
|
2012-09-02 12:36:08 +00:00
|
|
|
function done() {console.log('DONE')}
|
2012-09-01 12:17:39 +00:00
|
|
|
|
2012-09-02 12:36:08 +00:00
|
|
|
var A = require('./anim.js').Anim;
|
|
|
|
var x = new A(universe)
|
|
|
|
.add({1: 255, 6: 110, 7: 255, 8: 10}, 1200)
|
|
|
|
.delay(1000)
|
|
|
|
.add({1: 0}, 600)
|
|
|
|
.add({1: 255}, 600)
|
|
|
|
.add({5: 255, 6: 128}, 1000)
|
|
|
|
.add({1: 0}, 100)
|
|
|
|
.add({1: 255}, 100)
|
|
|
|
.add({1: 0}, 200)
|
|
|
|
.add({1: 255}, 200)
|
|
|
|
.add({1: 0}, 100)
|
|
|
|
.add({1: 255}, 100)
|
2012-09-02 12:59:49 +00:00
|
|
|
.add({1: 0})
|
|
|
|
.delay(50)
|
|
|
|
.add({1: 255})
|
|
|
|
.delay(50)
|
|
|
|
.add({1: 0})
|
|
|
|
.delay(50)
|
|
|
|
.add({1: 255})
|
|
|
|
.delay(50)
|
|
|
|
.add({1: 0})
|
|
|
|
.delay(50)
|
|
|
|
.add({1: 255})
|
|
|
|
.delay(50)
|
|
|
|
.add({1: 0})
|
|
|
|
.run(done);
|
|
|
|
var y = new A(universe)
|
|
|
|
.add({9: 255}, 10000)
|
2012-09-02 12:36:08 +00:00
|
|
|
.run(done);
|