8000 GitHub - dony71/BananaPiM2P.GPIO: RPi.GPIO drop-in replacement library for Orange Pi Boards
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dony71/BananaPiM2P.GPIO

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BananaPiM2P.GPIO

This is a modified version of RPi.GPIO for Orange Pi and Banana Pi Boards.

It is based on the original RPi.GPIO.

Installation

With PIP

sudo pip install BananaPiM2P.GPIO

Manual

sudo apt-get update
sudo apt-get install python-dev git
git clone https://github.com/dony71/BananaPiM2P.GPIO.git
cd /BananaPiM2P.GPIO
sudo python setup.py install

Supported Boards

  • OPi ZERO
  • OPi ZERO PLUS
  • OPi ZERO PLUS2 H3
  • OPi ZERO PLUS2 H5
  • OPi R1
  • OPi PC & PC PLUS
  • OPi ONE
  • OPi LITE
  • OPi PC2
  • OPi PRIME
  • BPi M2 PLUS

Usage

Same as RPi.GPIO but with a new function to choose BananaPi M2+ Board.

import OPi.GPIO as GPIO
GPIO.setboard(GPIO.M2P)
GPIO.setmode(GPIO.BOARD)
GPIO.output(5, 1)

Many demo is on the example folder

About

RPi.GPIO drop-in replacement library for Orange Pi Boards

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 88.8%
  • Python 7.9%
  • C++ 3.3%
0