fernandoremor / OPI.GPIO

A python GPIO library for Orange Pi Zero2, OrangePi Zero 2, Orange Pi3, and Orange Pi Lite2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OPI.GPIO

A modified version of OrangePi.GPIO to bring suport for the Orange Pi Zero2, Orange Pi 3 and the Orange Pi Lite2

Installation
sudo apt-get update
sudo apt-get install python-dev git
git clone https://github.com/eutim/OPI.GPIO
cd OPI.GPIO
sudo python3 setup.py install
Usage
  • GPIO.setboard(GPIO.H616) # Orange Pi Zero2 board
  • GPIO.setboard(GPIO.PI3) # Orange Pi3 board
  • GPIO.setboard(GPIO.LITE2) # Orange Pi Lite2 board
To-Do
  • Testing Inputs
  • Testing Outputs
  • Testing I2C
  • Testing SPI
  • Testing Interrupts
  • Testing PWM
  • Testing UART
  • Testing TWI
  • Testing ADC
  • Fix BCM mode

References

OrangePi.GPIO

OPi.GPIO

wiringOP

RPi.GPIO

About

A python GPIO library for Orange Pi Zero2, OrangePi Zero 2, Orange Pi3, and Orange Pi Lite2.

License:MIT License


Languages

Language:C 92.4%Language:Python 7.6%