2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 06:28:23 +01:00

node-red-arm keyboard patch

This commit is contained in:
kev
2016-08-22 11:37:10 +08:00
parent 02ae02e92b
commit 2921d700f5
7 changed files with 313 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--- a/36-rpi-gpio.js
+++ b/36-rpi-gpio.js
@@ -224,7 +224,7 @@
this.butt = n.butt || 7;
var node = this;
- node.child = spawn(gpioCommand+".py", ["mouse,node.butt]);
+ node.child = spawn(gpioCommand, ["mouse",node.butt]);
node.status({fill:"green",shape:"dot",text:"common.status.ok"});
node.child.stdout.on('data', function (data) {
@@ -270,7 +270,7 @@
RED.nodes.createNode(this,n);
var node = this;
- node.child = spawn(gpioCommand+".py", ["kbd","0"]);
+ node.child = spawn(gpioCommand, ["kbd","0"]);
node.status({fill:"green",shape:"dot",text:"common.status.ok"});
node.child.stdout.on('data', function (data) {