Closed TheChuckWhite closed 2 years ago
This code might not be compatible with RPI 4 indeed. See my issue https://github.com/jgarff/rpi_ws281x/issues/372
Also, what exactly RGB lights do you have?
I have some different panels and a ton of strips. All are ws2812b.
I don't have my hands on the rev 1.2 Pi 4 to confirm that PR #378 works, but a quick check of the revision number confirms that it's valid for a PCB Revision 2 version of the 4GB Pi 4.
No doubt there will need to be similar editions for both the 1GB and 2GB versions- I'll add these premptively since the revision IDs should be predictable.
Edit: Raised #379 for 1GB and 2GB versions.
Hi there, I have implemented in such a way that it works:
Hi, just got a new Raspberry Pi 4 and tried to run my old code when i get this error message:
RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)
Some other people had this problem with older models before and so I checked my Revision with
cat /proc/cpuinfo
and is saysRevision : c03112
Model: Raspberry Pi 4 Model B Rev 1.2
and compared it with the revision in rpihw.c and there was the problem:
//Raspberry Pi 4
.hwver = 0xC03111,
After a quick change I thought I am done, but now I'm just too stupid to install the lib into the right directory because the -d flag for
setup.py install
is not working (the error message says to specify the lib directory with -d because the default one seems to be wrong for me).I've only used pip to install libs, so I really don't know how to do that stuff. Hope it gets updated soon.
Update: Managed to install the local files with Python2 instead of 3 but the module is named rpi-ws281x instead of rpi_ws281x and that seems to be wrong syntax for import statements. Maybe a pro can give me some tips here.
Update2: My code is running when I import neopixel instead of rpi_ws281x but still no light, same with the examples. GPIO pin seems to be working, tested with a regular led. I'm done fiddling and will just wait for an update.