Jump to content

Access GPIO from Python3 as non root on a Rock Pi S (5.9 kernel)


nickeh
Go to solution Solved by TRS-80,

Recommended Posts

Hi,

 

what options do I have to access the GPIO from Python3 as a non-root user? I'm building a project based on the Rock Pi S and I have everything working (as root, i2c, GPIO) on the Radxa Ubuntu 18.04 image but as I wanted to future proof the project by using the 5.x kernel.

 

I started with the latest Armbian_20.11_Rockpi-s_focal_current_5.9.10_minimal and enabled the i2c bus from armbianEnv.txt (rk3308-i2c1) (was already active) because the armbian-config didn't work. So I managed to get the oled display to work with the same library (luma.oled) I used on the 4.4 kernel.

Then I wanted to install libmraa that I used on 4.4 but noticed was not available.

 

After some googling I found these options:

ArmbianIO

UserspaceIO

pyGPIO

 

but most of them seems to be deprecated so then I found libgpiod but havn't found alot of documentation yet. Is this my (only?) option or are there others?

 

Best regards

Nicke

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines