Skip to main content

A module to control OrangePi GPIO channels

Project description

## OrangePi.GPIO

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

It is based on the original [RPi.GPIO](https://pypi.python.org/pypi/RPi.GPIO).

## Installation

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

OrangePi.GPIO-0.6.3.tar.gz (17.4 kB view details)

Uploaded Source

File details

Details for the file OrangePi.GPIO-0.6.3.tar.gz.

File metadata

  • Download URL: OrangePi.GPIO-0.6.3.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for OrangePi.GPIO-0.6.3.tar.gz
Algorithm Hash digest
SHA256 89cfaf1114ea926c2a8e9b822511709bedab780310a927ce6ee5140d2dbecf51
MD5 f4b38ff032a2ba63d075b55dd2fe4df2
BLAKE2b-256 04b1c9589b308e2ee52e6f6710b7f0dc1fc07061b70ebd2fe28ec2308b556138

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page