Skip to content

Pi 5 Support #101

@alessaba

Description

@alessaba

Hi,
I just got a Pi 5 and the first HAT i mounted was a Blinkt i had laying around.
I did a fresh Pi OS install, and ran the installation script

I first got this error
error: externally-managed-environment
and the installation stopped, but i installed the apt package and the module seems to show up in python 3

The problem is that when i call the show() function, there is what seems to be a permissions error to /dev/mem.
Traceback (most recent call last): File "/home/pi/Pimoroni/blinkt/examples/rainbow.py", line 22, in <module> show() File "/usr/lib/python3/dist-packages/blinkt.py", line 76, in show GPIO.setup(DAT, GPIO.OUT) RuntimeError: No access to /dev/mem. Try running as root!

Running as root does nothing. There is no error but nothing lights up

i read that it could be something related to /dev/gpiomem and i saw that at least on the Pi 5 (because of the RP1, perhaps?) , there is no gpiomem but just gpiomem0 through gpiomem4, so maybe this could also be the reason
Update: tried on my Pi Zero 2 and in fact there is just gpiomem on there. Pi5 has 5 different "files"

Am i doing something wrong or is there some compatibility problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions