-
Notifications
You must be signed in to change notification settings - Fork 102
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
RPi 5 support(?) #106
Comments
jgarff/rpi_ws281x#528 (comment) RPI5 support is currently WIP in the original C code. It works, but is not not implemented in the mainline. Would be great if this fix is integrated into this repo. |
J. dropped me a heads up, and I've been watching the GitHub notifications flood in. Taking a bit of a back seat because I have so much else to do, but once it's in mainline I'm happy to bump the module here. Possible we need a bunch of bugfixes to the bindings too, since the issues are piling up 🫠 |
In the meantime, it might be good to have a rpi5 branch that points to the rpi_ws281x C library rpi5 branch. Then folks could build it on that branch and it would work in Python without having to do submodule/copy tricks. I can help out there, but I don't know if I have permission to do this in the python repo. |
I did wonder, as I typed the above, if that would be a smart idea! Edit: Turns out I'd long forgotten who set this org up and you'll need @penfold42 to give you write access! |
Tagged a release and hung some (untested) test builds here: https://github.com/rpi-ws281x/rpi-ws281x-python/releases/tag/pi5-beta1 Hopefully it just works, all my Pi 5s are busy! 😆 😬 |
I've since tested and released a new build here: https://github.com/rpi-ws281x/rpi-ws281x-python/releases/tag/pi5-beta2 |
I get this error when using the I think it's due to the fact I'm using Python 3.12, and your whl file denotes cp311. There is an expected time for a full release? |
On my install (after doing a apt upgrade) I get a |
Nevermind this was from an older install that snuck into system packages and not passing the venv path to sudo -E correctly. |
🤷 this is based upon a development branch of rpi_ws281x discussed here ( jgarff/rpi_ws281x#528 ) so whenever that's merged, I guess!
That'll probably do it. I don't know how compatible the bindings are but you could try just renaming the file to Unfortunately I can't connect to my build Pi right now to try cutting a 312 build, but you could try building from source. |
Unfortunately I'm still struggling with this installation. I've built the kernel driver, the device tree overlay, then loaded the kernel driver, as described here. The Installation went well and testing the C-Script was running as it should. After that, I installed the pi5-beta2 from here into the venv and it worked fine. Now, after a reboot, it stopped working again with the original message "Hardware revision is not supported".
When I do all the steps again, it works again, until I reboot the device. What am I missing? And for when it works, is there already a possibility to use multiple channels/GPIO pins for multiple strips at the same time? As far as I can see, the |
Hi i have done the steps but it unfortunately never works. After installing the kernel driver etc. the test c script works well. After that i installed beta version 6.0.0 into my virtual env. However i always get following error when calling my script:
My HW revision is = 7041c000 Is the lib correctly binded. When checking the .so with nm i get this bindings:
Has somebody an idea? |
After renaming the file it successfully installed it. But the examples ( The error I get is Just to be sure - when running |
@GuyPerets106 - @Tetrikus - did you re-activate the virtual environment after rebooting? @anico97as - are you using |
hi @Gadgetoid,
After that it was not a problem to control my 8x32 matrix. Could it be that the device tree overlay or kernel module is not persisted somehow and that it will not be loaded by the kernel by default? |
So unfortunately it does not work, because I did just that :/ Thanks for the help! |
@GuyPerets106 - Sorry too many crossed wires and I forgot to properly respond to you here. I'm pretty sure this is because the .so file that contains the I'll cut a proper 3.12 build in the meantime. (Raspberry Pi OS bookworm is still on 3.11, are you using another OS?) |
Yes, I've re-activating it after rebooting and have the same issue every time. |
I created a new 3.11 venv and tested it again. It works (thank you!) but just one time for some reason. When I run Also, I have the same issue @Tetrikus experiencing when rebooting the device and have to go over all the setup again to make it work. |
@Tetrikus @GuyPerets106 oh the other thing I recall from the setup guide is that it tells you to load and configure the overlays once in a way that doesn't stick, ie:
The inserted module, dtoverlay and pinctrl changes will reset at reboot. It should be possible to make a dtoverlay (to be loaded via config.txt) that sets the pin state correctly and loads and configures the module, taking PWM channel and pin as an argument but that's an upstream and not a Python problem. For now... you'll need to repeat at least those commands on every boot. |
Hi , I'm using RPi 5 after using the same ws2812b strip on the RPi 4. It now says
Hardware revision is not supported
.It is expected soon?
Thanks
The text was updated successfully, but these errors were encountered: