Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Control GPIOs on OLinuXino-A20.

Project description

This package provides class to control the GPIO on Olinuxino A20. Current release does no support any peripheral functions.

Example

Typical usage:

#!/usr/bin/env python

import A20_GPIO as GPIO

#init module
GPIO.init()

#configure module
GPIO.setcfg(GPIO.PIN#, GPIO.OUTPUT)
GPIO.setcfg(GPIO.PIN#, GPIO.INPUT)

#read the current GPIO configuration
config = GPIO.getcfg(GPIO.PIN#)

#set GPIO high
GPIO.output(GPIO.PIN#, GPIO.HIGH)

#set GPIO low
GPIO.output(GPIO.PIN#, GPIO.LOW)

#read input
state = GPIO.input(GPIO.PIN#)

#cleanup
GPIO.cleanup()

Warning

Before using this tool it is HIGHLY RECOMENDED to check Olinuxino A20 schematic.

Changelog

  • pyA20 0.1.0 (2013-08-19)
    • Initial release

Project details


Download files

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

Files for pyA20, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pyA20-0.1.0.tar.gz (4.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page