Closed socalledsound closed 6 years ago
ps: is 'linux' in the pi detection code case senstive? when I run uname -a I get
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Just FYI, this library works on Raspberry Pi Zero W. I've successfully got it working with OPC and OLA.
@socalledsound it checks this:
if (process.arch !== 'arm' && process.platform !== 'linux')
Do those differ for you?
There are quite some raspberry-editions that might give false negatives with the current detection-code. The upcoming version will use completely rewritten code for that.
Hi there, I discovered this problem too, the rpi-version library hasn't been updated in two years! I've added the RpiZeroW cpu to the list of cpu info in the library and performed a pull request. Hopefully the maintainer will merge in the change soon!
@paulhayes Awesome, that did at least already land on master. Just needs a new version on npm now.
Hello, I went through the same Adafruit tutorial that you linked to with a single neopixel on a raspberry pi 2 and am able to get a rainbow animation using their python code. I'd prefer to work in JS so thought I'd try out your library. Unfortunately when I run sudo node rainbow.js I get:
[rpi-ws281x-native] it looks like you are not running on a raspberry pi so there will be no functionality exposed by this module. For convenience, implementation stubs are provided.
Any ideas why this is happening? Help appreciated!