Git Product home page Git Product logo

rpi.gpio_bp's Introduction

RPi.GPIO_BP README

This is a modified version RPi.GPIO for Banana Pro/Pi. We call it RPi.GPIO_BP. It is based on the original RPi.GPIO. The modification is done by LeMaker. The RPi.GPIO_BP API usage are the same to the original RPi.GPIO. You can donwload the RPi.GPIO_BP from: https://github.com/LeMaker/RPi.GPIO_BP.

Download

For Banana Pro

git clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapro

For Banana Pi

git clone https://github.com/LeMaker/RPi.GPIO_BP -b bananapi

Installation

sudo apt-get update
sudo apt-get install python-dev
cd /RPi.GPIO_BP
python setup.py install                 
sudo python setup.py install

Please be attention that you need use both python and sudo pytohn to make the RPi.GPIO_BP work well.

Examples

You can go to LeMaker wiki to see the basic examples: http://wiki.lemaker.org/RPi.GPIO

And the source directory test also has many demo.

Extra

This version supports a new addressing mode "RAW" which enables you to use any GPIO pin. Below is an example which sets PD10 (which is pin 29 on the LCD connector) to a high level.

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.RAW)
GPIO.setup(GPIO.PD+10, GPIO.OUT)
GPIO.output(GPIO.PD+10, 1)

Thanks!

LeMaker Team

rpi.gpio_bp's People

Contributors

tony-hit avatar pingtrip avatar herm avatar gdcrocx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.