Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.
/ OrangePi.GPIO Public archive

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

License

Notifications You must be signed in to change notification settings

Jeremie-C/OrangePi.GPIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ee7587 · Jun 3, 2018

History

7 Commits
May 20, 2018
Jun 3, 2018
Jun 3, 2018
May 9, 2018
May 9, 2018
Jun 3, 2018
Jun 3, 2018
Jun 3, 2018

Repository files navigation

OrangePi.GPIO

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

It is based on the original RPi.GPIO.

Installation

With PIP

sudo pip install OrangePi.GPIO

Manual

sudo apt-get update
sudo apt-get install python-dev git
git clone https://github.com/Jeremie-C/OrangePi.GPIO
cd /OrangePi.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

Usage

Same as RPi.GPIO but with a new function to choose OrangePi Board.

import OPi.GPIO as GPIO
GPIO.setboard(GPIO.ZEROPLUS)
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