mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-19 12:02:19 +02:00
21 lines
718 B
Diff
21 lines
718 B
Diff
|
--- 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) {
|