How to give a user GPIO and SPI permissions?

Hi,

I am using the python periphery library to drive an eink display. currently I have to run my code with sudo permission everytime. I would like to give my user permanent gpio and spi permission. I know on Rpi 5 there are user groups for that.

How can I give my user permission on Rubik Pi 3?

May I know the details for the eink display and how you connect to Rubik Pi 3?
Seems like it’s not simply a permission question.
It might need additional configuration for the 40-pin connector.

Yes this is a SPI display with 40-pin connector

RubikPi can be connected to the SPI display via the 40-pin connector; you may proceed with the relevant adaptation work.
Regarding the permission matter, we are currently syncing this issue internally.

May I get details about what’s the situation for Rpi 5? Thank you!

It’s mentioned by the post that some operation needs user group ‘dialout’, this is easy to fix, you can add dialout group permission to user ubuntu by:

sudo usermod -a -G dialout ubuntu

You need to logout and login to make the new group permission effective.

I checked the UART from 40-pin is using dialout group:

$ ls -l /dev/ttyHS2 
crw-rw---- 1 root dialout 236, 2 Oct 30 22:51 /dev/ttyHS2

So UART access can be resolved.

But it’s also mentioned a new udev rules by that post. For that, I think it need to create the udev rule for rubik pi. It’s related to the use case, that I don’t have on hand.

Hope it helps.