Add Pi Neopixel node

This commit is contained in:
Dave Conway-Jones
2016-01-11 21:22:30 +00:00
parent ff8f95066b
commit 5ebbf546d2
9 changed files with 830 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env node
var fs = require('fs');
if (!fs.existsSync('/usr/local/lib/python2.7/dist-packages/neopixel.py')) {
console.warn("WARNING : Can't find neopixel.py python library");
console.warn("WARNING : Please install using the following command");
console.warn("WARNING : Note: this uses root...");
console.warn("WARNING : curl -sS get.pimoroni.com/unicornhat | bash\n");
//process.exit(1);
}
else {
console.log("Neopixel Python library found OK.\n")
}