mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Add tip for frequency setting
This commit is contained in:
parent
0984f91f8b
commit
26b9588ba6
@ -35,6 +35,7 @@
|
|||||||
"in": "Only Digital Input is supported - input must be 0 or 1.",
|
"in": "Only Digital Input is supported - input must be 0 or 1.",
|
||||||
"dig": "Digital output - 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.",
|
"pwm": "PWM output - input must be between 0 to 100.",
|
||||||
|
"freq": "Frequency must be in between 5 and 40000 Hz",
|
||||||
"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."
|
"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": {
|
||||||
|
@ -419,6 +419,7 @@
|
|||||||
</div>
|
</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="freq-tip"><span data-i18n="[html]pi-gpiod.tip.freq"></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
|
<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>
|
||||||
@ -507,6 +508,7 @@
|
|||||||
$('#node-set-minimax').show();
|
$('#node-set-minimax').show();
|
||||||
$("#dig-tip").hide();
|
$("#dig-tip").hide();
|
||||||
$("#pwm-tip").hide();
|
$("#pwm-tip").hide();
|
||||||
|
$("#freq-tip").hide();
|
||||||
$("#ser-tip").show();
|
$("#ser-tip").show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -517,6 +519,7 @@
|
|||||||
$('#node-set-minimax').hide();
|
$('#node-set-minimax').hide();
|
||||||
$("#dig-tip").show();
|
$("#dig-tip").show();
|
||||||
$("#pwm-tip").hide();
|
$("#pwm-tip").hide();
|
||||||
|
$("#freq-tip").hide();
|
||||||
$("#ser-tip").hide();
|
$("#ser-tip").hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -536,8 +539,10 @@
|
|||||||
var setfreqstate = function () {
|
var setfreqstate = function () {
|
||||||
if ($('#node-input-setfreq').is(":checked")) {
|
if ($('#node-input-setfreq').is(":checked")) {
|
||||||
$("#node-set-frequency").show();
|
$("#node-set-frequency").show();
|
||||||
|
$("#freq-tip").show();
|
||||||
} else {
|
} else {
|
||||||
$("#node-set-frequency").hide();
|
$("#node-set-frequency").hide();
|
||||||
|
$("#freq-tip").hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
$("#node-input-setfreq").change(function () { setfreqstate(); });
|
$("#node-input-setfreq").change(function () { setfreqstate(); });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user