Jump to content

Recommended Posts

Posted

I installed Armbian_community_26.2.0-trunk.130_Orangepizero2w_trixie_current_6.12.63_minimal and tried to follow the instructions on gpiod · PyPI.

 

GPIO are not enabled in device tree.

Posted

You have to allocate the I/O pins you want to use and how you want to use them yourself, can be done in armbianEnv.txt. 

 

A generic image cannot know what you want and what is connected to which I/O pins.

 

GPIO is not like USB or PCIe that is can be automatically let its connected hardware enumerate.

 

Also old Linux behavior w.r.t. GPIO is gone. You fundamentally need to open it, keep it operational with handle, in your code. Like you open a file when you want to read or write.

Python might do that for you, but for C-code maybe look at lgio.

 

So maybe tell first what you want to achieve, is it a temperature sensor maybe, or control a MOSFET or relay, etc.

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