-
Notifications
You must be signed in to change notification settings - Fork 1
/
max31865.html
76 lines (69 loc) · 2.62 KB
/
max31865.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<script type="text/x-red" data-template-name="pimax31865">
<div class="form-row">
<label for="node-input-bus"><i class="fa fa-tag"></i> Bus</label>
<input type="text" id="node-input-bus" placeholder="Bus"/>
</div>
<div class="form-tips">First digit in /dev/spidev0.0</div>
<div class="form-row">
<label for="node-input-dev"><i class="fa fa-tag"></i> Device</label>
<input type="text" id="node-input-dev" placeholder="Device"/>
</div>
<div class="form-tips">Second digit in /dev/spidev0.0</div>
<div class="form-row">
<label for="node-input-rtd"><i class="fa fa-toggle-on"></i> RTD Nominal</label>
<select type="text" id="node-input-rtd" style="width:150px;">
<option value=100>100</option>
<option value=1000>1000</option>
</select>
</div>
<div class="form-tips">Nominal resistance of sensor</div>
<div class="form-row">
<label for="node-input-ref"><i class="fa fa-toggle-on"></i> Reference Resistance</label>
<select type="text" id="node-input-ref" style="width:150px;">
<option value=430>430</option>
<option value=4300>4300</option>
</select>
</div>
<div class="form-tips">Reference resistance on board</div>
<div class="form-row">
<label for="node-input-wir"><i class="fa fa-toggle-on"></i> Wires</label>
<select type="text" id="node-input-wir" style="width:150px;">
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
</select>
</div>
<div class="form-tips">Wires used for sensor (2, 3 or 4)</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name"/>
</div>
</script>
<script type="text/x-red" data-help-name="pimax31865">
<p>Reads from a MAX31865 RTD-to-Digital Converter board.</p>
</script>
<script type="text/javascript">
RED.nodes.registerType('pimax31865',{
category: 'Raspberry Pi',
paletteLabel: 'MAX31865 converter',
color: "#c6dbef",
defaults: {
name: {value:""},
bus: {value:0},
dev: {value:0},
rtd: {value:1000},
ref: {value:4300},
wir: {value:4}
},
inputs: 1,
outputs: 1,
icon: "rpi.png",
label: function() {
return this.name || "max31865-"+this.bus+"/"+this.dev;
},
labelStyle: function() {
return this.name?"node_label_italic":"";
}
});
</script>