mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
update hardware nodes info style
This commit is contained in:
@@ -7,10 +7,9 @@ Galileo or Edison running mraa.
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in the root directory of your Node-RED install, usually
|
||||
this is ~/.node-red .
|
||||
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
||||
|
||||
npm install node-red-node-intel-gpio
|
||||
npm i node-red-node-intel-gpio
|
||||
|
||||
Usage
|
||||
-----
|
||||
@@ -39,7 +38,7 @@ If you do need to install Node-RED, you can do this as follows from the home dir
|
||||
### Analogue Input Node
|
||||
|
||||
Monitors the selected pin for changes. It outputs on a change of value.
|
||||
As analogue inputs are continously changing you can set the sample rate in ms from 20 to 65535.
|
||||
As analogue inputs are continuously changing you can set the sample rate in ms from 20 to 65535.
|
||||
|
||||
### Digital Input Node
|
||||
|
||||
@@ -48,11 +47,11 @@ Monitors the selected pin for changes. It only outputs on a change of value.
|
||||
### Digital Output Node
|
||||
|
||||
Sets the selected digital pin output high or low depending on the value of
|
||||
**msg.payload** - expects a number or string 0 or 1.
|
||||
`msg.payload` - expects a number or string 0 or 1.
|
||||
|
||||
### Pulse Width Modulation (PWM) Node
|
||||
|
||||
The **msg.payload** should contain a floating point number value
|
||||
The `msg.payload` should contain a floating point number value
|
||||
between 0 (off) and 1 (fully on), or a string representation thereof.
|
||||
|
||||
You can set the overall period (mS) in the edit dialogue.
|
||||
|
@@ -78,7 +78,7 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="mraa-gpio-ain">
|
||||
<p>An analogue input pin for an Intel Galileo or Edison board that is read every <i>interval</i> milliseconds.</p>
|
||||
<p>The <b>msg.payload</b> will contain the value, and <b>msg.topic</b>
|
||||
<p>The <code>msg.payload</code> will contain the value, and <code>msg.topic</code>
|
||||
contains "{the_board_name}/A{the pin number}".</p>
|
||||
<p>The value is only sent if it is different from the previously read value.</p>
|
||||
</script>
|
||||
|
@@ -94,6 +94,6 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="mraa-gpio-din">
|
||||
<p>A digital input pin for an Intel Galileo or Edison board.</p>
|
||||
<p>The <b>msg.payload</b> contains the value (0 or 1), and <b>msg.topic</b>
|
||||
<p>The <code>msg.payload</code> contains the value (0 or 1), and <code>msg.topic</code>
|
||||
contains "{the_board_name}/D{the pin number}".</p>
|
||||
</script>
|
||||
|
@@ -116,5 +116,5 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="mraa-gpio-dout">
|
||||
<p>A digital output pin for an Intel Galileo or Edison board.</p>
|
||||
<p>The <b>msg.payload</b> should contain the value 0 or 1.</p>
|
||||
<p>The <code>msg.payload</code> should contain the value 0 or 1.</p>
|
||||
</script>
|
||||
|
@@ -96,7 +96,7 @@
|
||||
|
||||
<script type="text/x-red" data-help-name="mraa-gpio-pwm">
|
||||
<p>A pulse width modulation (PWM) output pin for an Intel Galileo or Edison board.</p>
|
||||
<p>The <b>msg.payload</b> should contain a floating point number value
|
||||
<p>The <code>msg.payload</code> should contain a floating point number value
|
||||
between 0 and 1, (or a string representation thereof.)</p>
|
||||
<p>For servo control set the period to 20mS and vary the input between 0.05 and 0.10</p>
|
||||
<p><b>Note</b> : Only pins 3, 5, 6, 9, 10 & 11 support PWM output.</p>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-intel-gpio",
|
||||
"version" : "0.0.3",
|
||||
"version" : "0.0.4",
|
||||
"description" : "A Node-RED node to talk to an Intel Galileo or Edison using mraa",
|
||||
"dependencies" : {
|
||||
},
|
||||
|
Reference in New Issue
Block a user