republish BBB npm

This commit is contained in:
Dave C-J 2014-09-03 22:35:00 +01:00
parent 1188f3ca3f
commit 6122dcd069
2 changed files with 12 additions and 13 deletions

View File

@ -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>
<span style="float:right; margin-top:4px">
<input type="checkbox" id="node-input-averaging" style="display:inline-block; width:auto; vertical-align:top;"> Averaging&nbsp;
</span>
</span>
</div>
<div class="form-row">
<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 -->
<script type="text/javascript">
RED.nodes.registerType('bbb-analogue-in', {
category: 'advanced-input', // the palette category
category: 'Beaglebone', // the palette category
color:"#de7224",
defaults: { // defines the editable properties of the node
pin: { value:"", required:true },
@ -124,11 +124,11 @@ voltage ten times in rapid succession for each input message and output the mean
});
} else {
mutableFlag.attr("mutable", "false");
}
}
if (insert === true) {
var last = $("#node-input-breakpoint-container").children().last();
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);
outputValueField.val((Number(last.find(".node-input-breakpoint-output-value").val()) +
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-add-breakpoint").click(function () {
generateBreakpoint({input:0, output:0, mutable:true}, true);
$("#node-input-breakpoint-container-div").scrollTop($("#node-input-breakpoint-container-div").get(0).scrollHeight);
});
for (var i = 0; i < this.breakpoints.length; i++) {
var breakpoint = this.breakpoints[i];
generateBreakpoint(breakpoint, false);
}
// Handle resizing the Input Scaling div when the dialog is resized - this isn't quite right!
function switchDialogResize(ev, ui) {
$("#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 -->
<script type="text/javascript">
RED.nodes.registerType('bbb-discrete-in', {
category: 'advanced-input', // the palette category
category: 'Beaglebone', // the palette category
color:"#de7224",
defaults: { // defines the editable properties of the node
pin: { value:"", required:true },
@ -390,7 +390,7 @@ any other input message will reset it to zero.
<!-- Register bbb-pulse-in node -->
<script type="text/javascript">
RED.nodes.registerType('bbb-pulse-in', {
category: 'advanced-input', // the palette category
category: 'Beaglebone', // the palette category
color:"#de7224",
defaults: { // defines the editable properties of the node
pin: { value:"", required:true },
@ -501,7 +501,7 @@ the Inverting property is not applied to this value.
<!-- Register bbb-discrete-out node -->
<script type="text/javascript">
RED.nodes.registerType('bbb-discrete-out', {
category: 'advanced-input', // the palette category
category: 'Beaglebone', // the palette category
color:"#de7224",
defaults: { // defines the editable properties of the node
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 -->
<script type="text/javascript">
RED.nodes.registerType('bbb-pulse-out', {
category: 'advanced-input', // the palette category
category: 'Beaglebone', // the palette category
color:"#de7224",
defaults: { // defines the editable properties of the node
pin: { value:"", required:true },
@ -635,4 +635,3 @@ the pin changes state: its payload is the new state (0 or 1).
}
});
</script>

View File

@ -1,6 +1,6 @@
{
"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",
"dependencies" : {
},