vtech Posted 11 hours ago Posted 11 hours ago 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. 0 Quote
eselarm Posted 10 hours ago Posted 10 hours ago 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. 0 Quote
vtech Posted 2 hours ago Author Posted 2 hours ago (edited) Thank you eselarm for the reply. If it is possible to get simple SOP for running blinky program on any of the gpio of orange pi zero 2w in python, I can take it forward. I am trying to operate relays using orange pi zero 2w. Edited 2 hours ago by vtech 0 Quote
Recommended Posts
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.