update neo-pixel and unicorn hat nodes to use later libs

This commit is contained in:
Dave Conway-Jones
2017-08-31 11:25:44 +01:00
parent ee852bf060
commit 39fd3b85cd
7 changed files with 11 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pi-unicorn-hat",
"version" : "0.0.14",
"version" : "0.0.15",
"description" : "A Node-RED node to output to a Raspberry Pi Unicorn HAT from Pimorini.",
"dependencies" : {
"pngjs": "2.2.*"

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node
var fs = require('fs');
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py')) {
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/neopixel')) {
console.warn("WARNING : Can't find unicorn.py python library");
console.warn("WARNING : Please install using the following command");
console.warn("WARNING : Note: this uses root...");

View File

@@ -12,7 +12,7 @@ module.exports = function(RED) {
throw "Info : "+RED._("rpi-gpio.errors.ignorenode");
}
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/unicornhat.py')) {
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/neopixel')) {
RED.log.warn("Can't find Unicorn HAT python libraries");
throw "Warning : Can't find Unicorn HAT python libraries";
}