mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
pi-gpiod: improved/fixed EN localisation and added DE help (#778)
This commit is contained in:
@@ -4,12 +4,14 @@
|
||||
0 or 1 depending on the state of the input pin.
|
||||
Requires the <a href="http://abyz.me.uk/rpi/pigpio/index.html" target="_new">pi-gpiod</a>
|
||||
daemon to be running on the host computer in order to work.</p>
|
||||
<p><b>Outputs</b>
|
||||
<ul>
|
||||
<li><code>msg.payload</code> - <i>number</i> - the level of the pin (0 or 1).</li>
|
||||
<li><code>msg.topic</code> - <i>string</i> - pi/{the pin number}</li>
|
||||
</ul>
|
||||
<p><b>Details</b></p>
|
||||
<h3>Outputs</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">number</span></dt>
|
||||
<dd>the level of the pin (0 or 1)</dd>
|
||||
<dt>topic<span class="property-type">string</span></dt>
|
||||
<dd>pin number <code>pi/{the pin number}</code></dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<p>You may also enable the input pullup resistor ↑ or the pulldown resistor ↓.</p>
|
||||
<p>If using with Docker on Pi then the default Host IP should be <code>172.17.0.1</code>. You will also need to run <code>sudo pigpiod</code> on the host.</p>
|
||||
<p><b>Note:</b> the pin numbers refer the physical pin numbers on connector P1 as they are easier to locate.</p>
|
||||
@@ -18,11 +20,12 @@
|
||||
<script type="text/html" data-help-name="pi-gpiod out">
|
||||
<p>Raspberry Pi output node. Can be used in Digital, PWM or Servo modes. Requires the
|
||||
<a href="http://abyz.me.uk/rpi/pigpio/index.html" target="_new">pi-gpiod</a> daemon to be running in order to work.</p>
|
||||
<p><b>Inputs</b>
|
||||
<ul>
|
||||
<li><code>msg.payload</code> - <i>number | string</i> - 0,1 (Digital), 0-100 (PWM, Servo)</li>
|
||||
</ul>
|
||||
<p><b>Details</b></p>
|
||||
<h3>Inputs</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload<span class="property-type">number | string</span></dt>
|
||||
<dd>0,1 (Digital), 0-100 (PWM, Servo)</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<p>Digital mode expects a <code>msg.payload</code> with either a 0 or 1 (or true or false),
|
||||
and will set the selected physical pin high or low depending on the value passed in.</p>
|
||||
<p>The initial value of the pin at deploy time can also be set to 0 or 1.</p>
|
||||
|
@@ -34,7 +34,7 @@
|
||||
"in": "Only Digital Input is supported - input must be 0 or 1.",
|
||||
"dig": "Digital output - input must be 0 or 1.",
|
||||
"pwm": "PWM output - input must be between 0 to 100.",
|
||||
"ser": "Servo output - input must be between 0 to 100. 50 is centre.<br/>min. must be 500 <EFBFBD>s or more, max. must be 2500 <EFBFBD>s or less.",
|
||||
"ser": "Servo output - input must be between 0 to 100. 50 is centre.<br/>min. must be 500 us or more, max. must be 2500 us or less.",
|
||||
"dual": "Pins marked in blue are dual use. Make sure they are not enabled for their other use before using as GPIO."
|
||||
},
|
||||
"types": {
|
||||
|
Reference in New Issue
Block a user