Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4146

Troubleshooting • Re: Issues with gpiozero on Pi 5 — No such file or directory: '/dev/gpiomem' & OSError: unable to determine gpio base

$
0
0
I think it is

Code:

pip install rpi-lgpio 
in the venv
That's Dave's compatability shim to translate old style RPi.ixxx to new style interfaces in the background, not the new style lgpio (which may be based on Joan's lg? )
It is not needed for gpiozero as it already works on the Pi5, it is only needed if you use the older i.e
import RPi.GPIO as GPIO
and it's methods

It's all on a few topic somewhere in the depths of initial Pi5 chat.

Statistics: Posted by bensimmo — Sun Oct 13, 2024 9:53 am



Viewing all articles
Browse latest Browse all 4146

Trending Articles