Add debounce time to the to BBB input node

This commit is contained in:
Dave Conway-Jones
2016-02-02 12:36:27 +00:00
parent 7cb43208e6
commit ed4b6b18ec
3 changed files with 12 additions and 12 deletions

View File

@@ -228,7 +228,7 @@ voltage ten times in rapid succession for each input message and output the mean
</div>
<div class="form-row">
<label for="node-input-debounce">Debounce</label>
<input type="checkbox" id="node-input-debounce" style="display:inline-block; width:auto; vertical-align:top;">
<input type="text" id="node-input-debounce" placeholder="debounce time in mS" style="width: 160px"> mS
</div>
<div class="form-row">
<label for="node-input-outputOn">Output on</label>
@@ -284,7 +284,7 @@ press. When using buttons or switches, enable debouncing to improve reliability.
defaults: { // defines the editable properties of the node
pin: { value:"", required:true },
activeLow: { value:false, required:true },
debounce: { value:false, required:true },
debounce: { value:0, required:true },
outputOn: { value:"both", required:true },
updateInterval: { value:60, required:true, validate:RED.validators.number() },
topic: { value:"" },