Banana Pi M2 Zero GPIO with Python

i cannot use RPi.GPIO from bananapi it says: RuntimeError: This module can only be run on Raspberry Pi!

any fix for this?

i am using armbian-buster Linux bananapim2zero 5.10.43-sunxi

rpi.gpio is deprecated even on Rpi…

Use alternative libraries that are known to work on armbian

1 Like

i just forked and made new version of pyGPIO

i added support of BPi M2 Zero

1 Like