mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Problems with more than one MCP3008 (#823)
* Add files via upload * Update pimcp3008.js implementation of the discussion * Update pimcp3008.js Co-authored-by: Dave Conway-Jones <dceejay@users.noreply.github.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<select type="text" id="node-input-dnum" style="width:150px;">
|
||||
<option value=0>CE0</option>
|
||||
<option value=1>CE1</option>
|
||||
<option value=2>CE2</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
@@ -77,7 +78,7 @@
|
||||
outputs: 1,
|
||||
icon: "rpi.png",
|
||||
label: function() {
|
||||
return this.name || "mcp"+this.dev+" "+((this.pin==="M")?"":this.pin);
|
||||
return this.name || "mcp:"+this.dev+" "+" bus:"+this.bus+" CS:"+this.dnum+" pin:"+((this.pin==="M")?"":this.pin);
|
||||
},
|
||||
labelStyle: function() {
|
||||
return this.name?"node_label_italic":"";
|
||||
|
Reference in New Issue
Block a user