Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 4 Model B Rev 1.4 - Hardware not Supported Issue #127

Open
parrfolio opened this issue Feb 12, 2022 · 1 comment
Open

Raspberry Pi 4 Model B Rev 1.4 - Hardware not Supported Issue #127

parrfolio opened this issue Feb 12, 2022 · 1 comment

Comments

@parrfolio
Copy link

I'm currently facing this issue in my node app. Running v17.4.0 and NPM 8.3.1 on a Raspberry Pi 4 Model B Rev 1.4. I'm having a difficult time getting past the bindings error. Is this library supported with this version of Raspi?

/ws281x-native.js:160
  bindings.init();
           ^

Error: Hardware revision is not supported

Note, when I run rpi-ws281x-python library examples my LEDs light right up. No errors. Only seeing errors in the Node JS implementation.

Sure could use some help from anyone who has faced this with this particular model. I've read and tried a lot of solutions but cannot get past this bindings issue.

@parrfolio
Copy link
Author

parrfolio commented Feb 15, 2022

Fixed this for Pi 4 Model B Rev 1.4 on Node 17.5 by

  1. Using https://github.com/gbkwiatt/node-rpi-ws281x-native#readme fork
  2. Then reinstalling rpi_ws281x library by following these instructions here I managed to get the led working on a Raspberry Pi 4. ibmtjbot/tjbot#158 (comment)

This combination of fork plus updating rpi_ws281x worked for me! Sharing for those struggling to use this library as I did.

More detailed instructions:

//install from package from @gbkwiatt instead of rpi-ws281x-native@latest 
(rpi-ws281x-native@latest had tons of build errors, simply would not install for me on any version of Node)
npm install @gbkwiatt/node-rpi-ws281x-native
//git clone outside project 
https://github.com/jgarff/rpi_ws281x.git
// cd to src 
~/node_modules/@gbkwiatt/node-rpi-ws281x-native/src
// delete rpi_ws281x existing library that came pre-installed
rm -rf rpi_ws281x/
// copy latest rpi_ws281x to src folder in node-rpi-ws281x
cp -r ~/rpi_ws281x ~/node_modules/@gbkwiatt/node-rpi-ws281x-native/src
// cd out to main folder to build
cd ~/node_modules/@gbkwiatt/node-rpi-ws281x-native/
// run rebuild
node-gyp rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant