Quantcast
Viewing all articles
Browse latest Browse all 5310

Italiano • Re: WS2812B led control with Raspberry Pi 5 not working

Good evening everyone, I have a WS2812B LED and I tried to make it work on the Raspberry Pi 5 8 GB.
Now I'll explain everything I did up until the moment I ran the code to control the LED.
First I created a virtual environment and activated it, then from inside the environment I executed the following commands to install the appropriate libraries:

Code:

pip3 install adafruit-platformdetect

Code:

pip3 install Adafruit-Blinka

Code:

pip3 install gpiod

Code:

pip3 install rpi_ws281x adafruit-circuitpython-neopixel



An RPi[5] board has completely different arrangements for using the GPIO pins on the 2x20-way header, compared to any of the earlier RPi boards. This is due to the new RP1 controller chip.

Many of the libraries, tools and tutorials that worked with older hardware and previous releases of RasPiOS will not work with the current RPi5 and RasPiOS Bookworm. Perhaps that explains the problem you are experiencing.

Since you seem to be reliant on code supplied by Adafruit I suggest approaching them for confirmation that the libraries you have installed have been updated to make them compatible with the relatively new RPi[5] hardware.



{Query was originally posted in the 'Italiano' sub-forum for some reason, but I have replied in English in line with the original text.}

Statistics: Posted by B.Goode — Thu Feb 08, 2024 8:58 am



Viewing all articles
Browse latest Browse all 5310

Trending Articles