mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update licenses and packages for all nodes
This commit is contained in:
@@ -1,20 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Copyright 2016 IBM Corp.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<script type="text/x-red" data-template-name="pimcp3008">
|
||||
<div class="form-row">
|
||||
<label for="node-input-mode"><i class="fa fa-map-pin"></i> Input pin</label>
|
||||
@@ -30,6 +14,13 @@
|
||||
<option value="M">set by msg.payload</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-mode"><i class="fa fa-toggle-on"></i> Device ID</label>
|
||||
<select type="text" id="node-input-dnum" style="width:150px;">
|
||||
<option value=0>CE0</option>
|
||||
<option value=1>CE1</option>
|
||||
</select>
|
||||
</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"/>
|
||||
@@ -37,7 +28,7 @@
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-help-name="pimcp3008">
|
||||
<p>Reads from an MCP3008 Analogue to Digital Converter (ADC) chip on the Pi SPI CE0 connection,
|
||||
<p>Reads from an MCP3008 Analogue to Digital Converter (ADC) chip on the Pi SPI CE0 or CE1 connection,
|
||||
such as the rasp.io/analogzero.</p>
|
||||
<p>You can either set a channel in the edit dialogue, or you can set the <code>msg.payload</code>
|
||||
to select the channel dynamically. If so then the expected payload must be a value from 0 to 7.</p>
|
||||
@@ -46,7 +37,7 @@
|
||||
<p>Also sets <code>msg.topic</code> to <i>adc/{the pin number}</i></p>
|
||||
<p><b>Warning</b>: Input voltages must not exceed 3.3V</p>
|
||||
<p>The SPI bus must be enabled for this node to work. This can be achieved by using the
|
||||
advanced menu (option 9 A5) of the raspi-config utility.</p>
|
||||
advanced menu (option 9 A5) of the <b>raspi-config</b> utility.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
@@ -56,7 +47,8 @@
|
||||
color: "#c6dbef",
|
||||
defaults: {
|
||||
name: {value:""},
|
||||
pin: {value:0, required:true}
|
||||
pin: {value:0, required:true},
|
||||
dnum: {value:0}
|
||||
},
|
||||
inputs: 1,
|
||||
outputs: 1,
|
||||
|
Reference in New Issue
Block a user