Python gpio library problem


#1

I encountered a problem when using 4B to development. When using RPi.GPIO and gpiozero libraries in python, I got error /usr/local/lib/python3.5/dist-packages/gpiozero/devices.py:279: PinFactoryFallback: Falling back from rpigpio: This module can only be run on a Raspberry Pi!.
Does Rock Pi has its own GPIO library,If not, what do I need to do in the configuration or in the RPi.GPIO library? Anyone may help ?


#2

Try using libmraa from rockpi 4 wiki

https://wiki.radxa.com/Rockpi4/dev/libmraa


#3

Thank you.It workes for me!