node-red-node-pi-neopixel
Version:
A Node-RED node to output to a neopixel (ws2812) string of LEDS from a Raspberry Pi.
14 lines (12 loc) • 553 B
JavaScript
var fs = require('fs');
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...");
console.warn("WARNING : curl -sS get.pimoroni.com/unicornhat | bash\n");
//process.exit(1);
}
else {
console.log("Python library found OK.\n")
}