RPi.GPIO port with support for Bananapi M5/M2Pro/M2S/CM4/CM5IO/M4B/M4Z/F3
RPi.GPIO by Ben Croston
https://sourceforge.net/projects/raspberry-gpio-python/
Bananapi M5/M2Pro/M2S/CM4/CM5IO/M4B/M4Z/F3 WiringPi port
https://github.com/Dangku/WiringPi
RPi.GPIO is distributed under MIT license, but wiringPi uses LGPL 3. Since this project
contains code from both projects, it is licensed under the slightly more restrictive LGPL v3.
Working for simple IO on Bananapi M5/M2Pro/M2S/CM4/CM5IO/M4B/M4Z/F3 PWM, events, analog read, ... not implemented
- Install build-essential, python, python-dev, python-setuptools, git
- git clone https://github.com/Dangku/RPi.GPIO.git
- cd RPi.GPIO
- sudo python setup.py clean --all
- sudo python setup.py build install
Apps require root (eg 'sudo python testapp.py')
When using BCM mode, RPi BCM numbers are passed to GPIO.xxx and translated internally to Bananapi GPIO numbers
Compare RPi connector pinout / BCM chart and Bananapi pinout to match RPi BCM with Bananapi pins