Skip to content

Commit

Permalink
add python3.9 check to neopixel install
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Feb 24, 2022
1 parent 1a7077c commit bc73218
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions hardware/neopixel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "node-red-node-pi-neopixel",
"version" : "1.0.0",
"version" : "2.0.0",
"description" : "A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.",
"dependencies" : {
},
Expand All @@ -16,6 +16,7 @@
"neopixel"
],
"node-red": {
"version": ">=2.0.0",
"nodes": {
"rpi-neopixels": "neopixel.js"
}
Expand All @@ -27,5 +28,6 @@
"name": "Dave Conway-Jones",
"email": "[email protected]",
"url": "http://nodered.org"
}
},
"engines" : { "node" : ">=12.0.0" }
}
2 changes: 1 addition & 1 deletion hardware/neopixel/scripts/checklib.js
Original file line number Diff line number Diff line change
@@ -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/unicornhat.py') && !fs.existsSync('/usr/local/lib/python3.9/dist-packages/unicornhat.py')) {
console.warn("WARNING : Can't find required python library");
console.warn("WARNING : Please install using the following command");
console.warn("WARNING : Note: this uses root...");
Expand Down

0 comments on commit bc73218

Please sign in to comment.