dmx-flok/dmx.js

20 lines
472 B
JavaScript
Raw Normal View History

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)
.run(done);