mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
check for correct version of neopixel library
This commit is contained in:
parent
23ba609653
commit
b0d98cca01
2
hardware/neopixel/neopixel.js
Executable file → Normal file
2
hardware/neopixel/neopixel.js
Executable file → Normal file
@ -14,7 +14,7 @@ module.exports = function(RED) {
|
|||||||
RED.log.warn("rpi-neopixels : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
|
RED.log.warn("rpi-neopixels : "+RED._("node-red:rpi-gpio.errors.ignorenode"));
|
||||||
allOK = false;
|
allOK = false;
|
||||||
}
|
}
|
||||||
else if (execSync('python -c "import neopixel"').toString() !== "") {
|
else if (execSync('python -c "import rpi_ws281x"').toString() !== "") {
|
||||||
RED.log.warn("rpi-neopixels : Can't find neopixel python library");
|
RED.log.warn("rpi-neopixels : Can't find neopixel python library");
|
||||||
allOK = false;
|
allOK = false;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-pi-neopixel",
|
"name" : "node-red-node-pi-neopixel",
|
||||||
"version" : "0.0.21",
|
"version" : "0.0.22",
|
||||||
"description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.",
|
"description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user