mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
parent
f0867c5a01
commit
705c7f76c4
@ -65,7 +65,7 @@ module.exports = function (RED) {
|
|||||||
// measurements, then divides the total number, applies output scaling and
|
// measurements, then divides the total number, applies output scaling and
|
||||||
// sends the result
|
// sends the result
|
||||||
var analogReadCallback = function (err, x) {
|
var analogReadCallback = function (err, x) {
|
||||||
sum = sum + x.value;
|
sum = sum + Number(x);
|
||||||
count = count - 1;
|
count = count - 1;
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
bonescript.analogRead(node._pin, analogReadCallback);
|
bonescript.analogRead(node._pin, analogReadCallback);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-beaglebone",
|
"name" : "node-red-node-beaglebone",
|
||||||
"version" : "0.1.0",
|
"version" : "0.1.1",
|
||||||
"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" : {
|
||||||
"octalbonescript":"^1.1.*"
|
"octalbonescript":"^1.1.*"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user