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

"Hardware revision is not supported" For Raspberry Pi 4 Model B Rev 1.5 #23

Open
marcuszerep opened this issue Apr 12, 2022 · 2 comments

Comments

@marcuszerep
Copy link

The newest Raspberry Pis (at least from Canakit on Amazon) will fail in the https://github.com/jgarff/rpi_ws281x dependency until jgarff/rpi_ws281x#483 is resolved.

When the issue is resolved and solution is pushed there, looking forward to the https://www.npmjs.com/package/rpi-ws281x update.

@marcuszerep
Copy link
Author

marcuszerep commented Jul 11, 2022

See fork https://github.com/etcetc/rpi-ws281x which has the code with everything but 1gb (doesn't have most recent code changes from dependency)
https://github.com/etcetc/rpi-ws281x/blob/d393229554af04c71465a410dfa1896c7547e5d9/src/rpi_ws281x/rpihw.c#L139

However, the NPM script is not updated.

@RikWesselink
Copy link

Thanks for opening this issue. I ran into the same problem and found, with some help, a workaround.

  1. npm install rpi-ws281x

  2. Update the file 'rpihw.c' (which is located in "node_modules - rpi-ws281x - src - rpi_ws281x"). I added:
    {
    .hwver= 0xd03115,
    .type= RPI_HWVER_TYPE_PI4,
    .periph_base= PERIPH_BASE_RPI4,
    .videocore_base= VIDEOCORE_BASE_RPI2,
    .desc= "Pi 4 Model B - 8GB v1.5"
    },

  3. npm rebuild rpi-ws281x

After the rebuild, it works for me.

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

2 participants