-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdmxusbpro.html
42 lines (39 loc) · 1.85 KB
/
dmxusbpro.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<script type="text/javascript">
RED.nodes.registerType('dmxusbpro',{
category: 'function',
color: '#ffaaaa',
defaults: {
name: {value:""},
port: {value:"", required:true},
DMX_starting_address: {value:1, required:true}
},
inputs:1,
outputs:1,
icon: "light.png",
label: function() {
return this.name||"dmxusbpro";
}
});
</script>
<script type="text/x-red" data-template-name="dmxusbpro">
<div class="form-row">
<label for="node-input-port"><i class="fa fa-random"></i> Port</label>
<input type="text" id="node-input-port" placeholder="COM3 or /dev/ttyS0">
</div>
<div class="form-row">
<label for="node-input-DMX_starting_address"><i class="fa fa-hashtag"></i> DMX Starting Address</label>
<input type="text" id="node-input-DMX_starting_address" placeholder="1">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="dmxusbpro">
<p>Sends DMX data through the Enntec DMXUSBPRO device</p>
<p>Adapted and simplified from the existing node-dmx package @ https://www.npmjs.com/package/dmx requires node-serialport module (has a lot more functionality than included here)</p>
<p>dmxusbpro node takes an array of ints as input.</p>
<p>dmxusbpro requires the serialport node library. Similarly, the serialport needs to be assigned, COM3, COM4, or /dev/ttyS0, etc</p>
<p>The DMX presets can be offset by a base DMX address. This changes where the preset is stored in the Universe</p>
<p>the dmxusbpro copies the preset array into a 512 size buffer/universe according to the offset in order to send.</p>
</script>