1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Tidy up gpiod node tips

This commit is contained in:
Dave Conway-Jones 2018-02-15 14:43:29 +00:00
parent 17614843da
commit c1d835c1ca
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
3 changed files with 11 additions and 11 deletions

View File

@ -30,10 +30,10 @@
"pinname": "Pin", "pinname": "Pin",
"tip": { "tip": {
"pin": "<b>Pins in Use</b>: ", "pin": "<b>Pins in Use</b>: ",
"in": "<b>Tip</b>: Only Digital Input is supported - input must be 0 or 1.", "in": "Only Digital Input is supported - input must be 0 or 1.",
"dig": "<b>Tip</b>: For digital output - input must be 0 or 1.", "dig": "Digital output - input must be 0 or 1.",
"pwm": "<b>Tip</b>: For PWM output - input must be between 0 to 100.", "pwm": "PWM output - input must be between 0 to 100.",
"ser": "<b>Tip</b>: For Servo output - input must be between 0 to 100. 50 is centre.<br/>Min must be 500uS or more, Max must be 2500uS or less." "ser": "Servo output - input must be between 0 to 100. 50 is centre.<br/>Min must be 500uS or more, Max must be 2500uS or less."
}, },
"types": { "types": {
"digout": "digital output", "digout": "digital output",

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-node-pi-gpiod", "name": "node-red-node-pi-gpiod",
"version": "0.0.8", "version": "0.0.9",
"description": "A node-red node for PiGPIOd", "description": "A node-red node for PiGPIOd",
"dependencies" : { "dependencies" : {
"js-pigpio": "*" "js-pigpio": "*"

View File

@ -163,9 +163,9 @@
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label> <label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name"> <input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div> </div>
<div class="form-tips"><span data-i18n="[html]pi-gpiod.tip.in"></span></div>
<div class="form-tips" id="pin-tip">Pins marked in blue are dual use. Make sure they are not enabled for <div class="form-tips" id="pin-tip">Pins marked in blue are dual use. Make sure they are not enabled for
their other use before using as GPIO.</div> their other use before using as GPIO.</div>
<div class="form-tips"><span data-i18n="[html]pi-gpiod.tip.in"></span></div>
</script> </script>
<script type="text/x-red" data-help-name="pi-gpiod in"> <script type="text/x-red" data-help-name="pi-gpiod in">
@ -180,7 +180,7 @@
</ul> </ul>
<p><b>Details</b></p> <p><b>Details</b></p>
<p>You may also enable the input pullup resistor &uarr; or the pulldown resistor &darr;.</p> <p>You may also enable the input pullup resistor &uarr; or the pulldown resistor &darr;.</p>
<p>If using with Docker on Pi then the default Host IP should be `172.17.0.1`. You will also need to run `sudo pigpiod` on the host.</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> <p><b>Note:</b> the pin numbers refer the physical pin numbers on connector P1 as they are easier to locate.</p>
</script> </script>
@ -408,11 +408,11 @@
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label> <label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name"> <input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
</div> </div>
<div class="form-tips" id="pin-tip">Pins marked in blue are dual use. Make sure they are not enabled for
their other use before using as GPIO.</div>
<div class="form-tips" id="dig-tip"><span data-i18n="[html]pi-gpiod.tip.dig"></span></div> <div class="form-tips" id="dig-tip"><span data-i18n="[html]pi-gpiod.tip.dig"></span></div>
<div class="form-tips" id="pwm-tip"><span data-i18n="[html]pi-gpiod.tip.pwm"></span></div> <div class="form-tips" id="pwm-tip"><span data-i18n="[html]pi-gpiod.tip.pwm"></span></div>
<div class="form-tips" id="ser-tip"><span data-i18n="[html]pi-gpiod.tip.ser"></span></div> <div class="form-tips" id="ser-tip"><span data-i18n="[html]pi-gpiod.tip.ser"></span></div>
<div class="form-tips" id="pin-tip">Pins marked in blue are dual use. Make sure they are not enabled for
their other use before using as GPIO.</div>
</script> </script>
<script type="text/x-red" data-help-name="pi-gpiod out"> <script type="text/x-red" data-help-name="pi-gpiod out">
@ -427,7 +427,7 @@
and will set the selected physical pin high or low depending on the value passed in.</p> 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> <p>The initial value of the pin at deploy time can also be set to 0 or 1.</p>
<p>When using PWM and Servo modes, the input value should be a number 0 - 100, and can be floating point.</p> <p>When using PWM and Servo modes, the input value should be a number 0 - 100, and can be floating point.</p>
<p>If using with Docker on Pi then the default Host IP should be `172.17.0.1`. You will also need to run `sudo pigpiod` on the host.</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> <p><b>Note</b>: the pin numbers refer the physical pin numbers on connector P1 as they are easier to locate.</p>
</script> </script>
@ -485,7 +485,7 @@
$("#pwm-tip").show(); $("#pwm-tip").show();
$("#ser-tip").hide(); $("#ser-tip").hide();
} }
if ($("#node-input-out").val() === "ser") { else if ($("#node-input-out").val() === "ser") {
$('#node-set-tick').hide(); $('#node-set-tick').hide();
$('#node-set-state').hide(); $('#node-set-state').hide();
$('#node-set-minimax').show(); $('#node-set-minimax').show();