mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
republish BBB npm
This commit is contained in:
parent
1188f3ca3f
commit
6122dcd069
@ -46,7 +46,7 @@
|
|||||||
<a href="#" class="btn btn-mini" id="node-input-add-breakpoint" style="margin-top: 4px;"><i class="fa fa-plus"></i> Add Breakpoint</a>
|
<a href="#" class="btn btn-mini" id="node-input-add-breakpoint" style="margin-top: 4px;"><i class="fa fa-plus"></i> Add Breakpoint</a>
|
||||||
<span style="float:right; margin-top:4px">
|
<span style="float:right; margin-top:4px">
|
||||||
<input type="checkbox" id="node-input-averaging" style="display:inline-block; width:auto; vertical-align:top;"> Averaging
|
<input type="checkbox" id="node-input-averaging" style="display:inline-block; width:auto; vertical-align:top;"> Averaging
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||||
@ -78,7 +78,7 @@ voltage ten times in rapid succession for each input message and output the mean
|
|||||||
<!-- Register bbb-analogue-in node -->
|
<!-- Register bbb-analogue-in node -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('bbb-analogue-in', {
|
RED.nodes.registerType('bbb-analogue-in', {
|
||||||
category: 'advanced-input', // the palette category
|
category: 'Beaglebone', // the palette category
|
||||||
color:"#de7224",
|
color:"#de7224",
|
||||||
defaults: { // defines the editable properties of the node
|
defaults: { // defines the editable properties of the node
|
||||||
pin: { value:"", required:true },
|
pin: { value:"", required:true },
|
||||||
@ -124,11 +124,11 @@ voltage ten times in rapid succession for each input message and output the mean
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
mutableFlag.attr("mutable", "false");
|
mutableFlag.attr("mutable", "false");
|
||||||
}
|
}
|
||||||
if (insert === true) {
|
if (insert === true) {
|
||||||
var last = $("#node-input-breakpoint-container").children().last();
|
var last = $("#node-input-breakpoint-container").children().last();
|
||||||
var prev = last.prev();
|
var prev = last.prev();
|
||||||
inputValueField.val((Number(last.find(".node-input-breakpoint-input-value").val()) +
|
inputValueField.val((Number(last.find(".node-input-breakpoint-input-value").val()) +
|
||||||
Number(prev.find(".node-input-breakpoint-input-value").val()))/2);
|
Number(prev.find(".node-input-breakpoint-input-value").val()))/2);
|
||||||
outputValueField.val((Number(last.find(".node-input-breakpoint-output-value").val()) +
|
outputValueField.val((Number(last.find(".node-input-breakpoint-output-value").val()) +
|
||||||
Number(prev.find(".node-input-breakpoint-output-value").val()))/2);
|
Number(prev.find(".node-input-breakpoint-output-value").val()))/2);
|
||||||
@ -139,17 +139,17 @@ voltage ten times in rapid succession for each input message and output the mean
|
|||||||
$("#node-input-breakpoint-container").append(container);
|
$("#node-input-breakpoint-container").append(container);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#node-input-add-breakpoint").click(function () {
|
$("#node-input-add-breakpoint").click(function () {
|
||||||
generateBreakpoint({input:0, output:0, mutable:true}, true);
|
generateBreakpoint({input:0, output:0, mutable:true}, true);
|
||||||
$("#node-input-breakpoint-container-div").scrollTop($("#node-input-breakpoint-container-div").get(0).scrollHeight);
|
$("#node-input-breakpoint-container-div").scrollTop($("#node-input-breakpoint-container-div").get(0).scrollHeight);
|
||||||
});
|
});
|
||||||
|
|
||||||
for (var i = 0; i < this.breakpoints.length; i++) {
|
for (var i = 0; i < this.breakpoints.length; i++) {
|
||||||
var breakpoint = this.breakpoints[i];
|
var breakpoint = this.breakpoints[i];
|
||||||
generateBreakpoint(breakpoint, false);
|
generateBreakpoint(breakpoint, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle resizing the Input Scaling div when the dialog is resized - this isn't quite right!
|
// Handle resizing the Input Scaling div when the dialog is resized - this isn't quite right!
|
||||||
function switchDialogResize(ev, ui) {
|
function switchDialogResize(ev, ui) {
|
||||||
$("#node-input-breakpoint-container-div").css("height", (ui.size.height - 299) + "px");
|
$("#node-input-breakpoint-container-div").css("height", (ui.size.height - 299) + "px");
|
||||||
@ -279,7 +279,7 @@ press. When using buttons or switches, enable debouncing to improve reliability.
|
|||||||
<!-- Register bbb-discrete-in node -->
|
<!-- Register bbb-discrete-in node -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('bbb-discrete-in', {
|
RED.nodes.registerType('bbb-discrete-in', {
|
||||||
category: 'advanced-input', // the palette category
|
category: 'Beaglebone', // the palette category
|
||||||
color:"#de7224",
|
color:"#de7224",
|
||||||
defaults: { // defines the editable properties of the node
|
defaults: { // defines the editable properties of the node
|
||||||
pin: { value:"", required:true },
|
pin: { value:"", required:true },
|
||||||
@ -390,7 +390,7 @@ any other input message will reset it to zero.
|
|||||||
<!-- Register bbb-pulse-in node -->
|
<!-- Register bbb-pulse-in node -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('bbb-pulse-in', {
|
RED.nodes.registerType('bbb-pulse-in', {
|
||||||
category: 'advanced-input', // the palette category
|
category: 'Beaglebone', // the palette category
|
||||||
color:"#de7224",
|
color:"#de7224",
|
||||||
defaults: { // defines the editable properties of the node
|
defaults: { // defines the editable properties of the node
|
||||||
pin: { value:"", required:true },
|
pin: { value:"", required:true },
|
||||||
@ -501,7 +501,7 @@ the Inverting property is not applied to this value.
|
|||||||
<!-- Register bbb-discrete-out node -->
|
<!-- Register bbb-discrete-out node -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('bbb-discrete-out', {
|
RED.nodes.registerType('bbb-discrete-out', {
|
||||||
category: 'advanced-input', // the palette category
|
category: 'Beaglebone', // the palette category
|
||||||
color:"#de7224",
|
color:"#de7224",
|
||||||
defaults: { // defines the editable properties of the node
|
defaults: { // defines the editable properties of the node
|
||||||
pin: { value:"", required:true },
|
pin: { value:"", required:true },
|
||||||
@ -614,7 +614,7 @@ the pin changes state: its payload is the new state (0 or 1).
|
|||||||
<!-- Register bbb-pulse-out node -->
|
<!-- Register bbb-pulse-out node -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('bbb-pulse-out', {
|
RED.nodes.registerType('bbb-pulse-out', {
|
||||||
category: 'advanced-input', // the palette category
|
category: 'Beaglebone', // the palette category
|
||||||
color:"#de7224",
|
color:"#de7224",
|
||||||
defaults: { // defines the editable properties of the node
|
defaults: { // defines the editable properties of the node
|
||||||
pin: { value:"", required:true },
|
pin: { value:"", required:true },
|
||||||
@ -635,4 +635,3 @@ the pin changes state: its payload is the new state (0 or 1).
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-beaglebone",
|
"name" : "node-red-node-beaglebone",
|
||||||
"version" : "0.0.2",
|
"version" : "0.0.3",
|
||||||
"description" : "A set of Node-RED nodes to interface to the GPIO pins of a Beaglebone Black board",
|
"description" : "A set of Node-RED nodes to interface to the GPIO pins of a Beaglebone Black board",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user