I purchased a Blinkt and was not aware that the library apparently doesn’t work with Raspberry pi 5 because the RPI.gpio library no longer works with Raspberry Pi 5. Is there an alternate library or update that would work?
I posted a similar question, I think that its a big issue and I’m hoping that the pirates are working on fixing all the libraries and setup scripts
hel
February 3, 2025, 9:07am
3
There’s an updated installer in this PR that you could try:
pimoroni:master
← pimoroni:repackage
opened 04:19PM - 31 Oct 23 UTC
# Testing
If you're a Bookworm / Pi 5 user running into virtual environment i… ssues, you can try this library like so:
```
git clone https://github.com/pimoroni/blinkt -b repackage
cd blinkt
./install.sh --unstable
```
The `./install.sh` script will create a `pimoroni` virtual environment that's shared between our products. (or use your existing venv if you've already activated one.)
For the reasons behind these changes and other information, see:
* https://github.com/pimoroni/boilerplate-python/pull/13
* https://github.com/pimoroni/boilerplate-python/issues/16
* https://pimoroni.github.io/venv-python/
# Troubleshooting
## OSError: Device or resource busy
If you see an error like this:
```
OSError: [Errno 16] Device or resource busy
```
You should install `sudo apt install gpiod` and run `gpioinfo` to see what's using your pins. There should be a name in the column of "unused" things. If it's something like "sysfs" then something like RPi.GPIO (on an older Pi 4 OS) has already claimed the pin via `/sys/class/gpio` and gpiod will not let you use it.
Or, as of recent changes, a more useful error like this:
```
RuntimeError: some pins we need are in use:
⚠️ Data (GPIO 23) is currently claimed by blinkt
⚠️ Clock (GPIO 23) is currently claimed by blinkt
```
Then make sure you close whatever process, or disable whatever service is implicated as the claimant :laughing:
## PermissionError: Permission denied
If you see an error like this:
```
PermissionError: [Errno 13] Permission denied
```
You may need to add yourself to the "dialout" group, or whatever group arbitrates GPIO access on your distro. For example on Raspberry Pi Ubuntu -
```
sudo usermod -a -G dialout phil
```
…this is a simply a 10 LED WS2812b strip.
Thus, you can apply any code for the LEDs, unspecific of Pi4, Pi5, Pico, etc. There are numerous libraries out there on github…
I was struggling with blinkt years ago, as well, when I switched from Pi to Pico, but it is as simple as said…just use any WS2812b library and go…