İçeriğe geç
GPIO ve Donanım

GPIO kütüphaneleri: WiringPi ve RPi.GPIO

Banana Pi BPI-M5 · Amlogic için uyarlanmış WiringPi ve RPi.GPIO kütüphanelerini kurun.

WiringPi yalnızca giriş/çıkış ve yazılımsal PWM içindir; I2C, SPI, PWM gibi işlevler için boot.ini'de overlay açmalısınız. Debian'da önce sudo kurulmalıdır.

 $ sudo apt-get update
 $ sudo apt-get install build-essential git
 $ git clone https://github.com/BPI-SINOVOIP/amlogic-wiringPi
 $ cd amlogic-wiringPi
 $ chmod a+x build
 $ sudo ./build

Tüm pinlerin durumunu görmek için gpio readall çalıştırın. Örnekler: amlogic-wiringPi/examples.

RPi.GPIO (Python 3):

 $ sudo apt-get update
 $ sudo apt-get install build-essential python3 python3-pip python3-dev python3-setuptools git
 $ git clone https://github.com/Dangku/RPi.GPIO-Amlogic.git
 $ cd RPi.GPIO-Amlogic
 $ sudo python3 setup.py clean --all
 $ sudo python3 setup.py install