FAQ: How can I control the GPIOs from Python/Is there an onionGpio module for Python3?
-
pyOnionGpio was written as a quick and dirty wrapper for the sysfs gpio interface way back in 2016. We don't recommend using it for anything other than a hello world.
Better Options
There are other better sysfs gpio libraries available for Python3:
- https://pypi.org/project/gpio/
- https://python-periphery.readthedocs.io/en/latest/gpio.html
- https://github.com/vitiral/gpio
Let us know how it goes!