Skip to main content

Control GPIOs on OLinuXino-A13.

Project description

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

Example

Typical usage:

#!/usr/bin/env python

import A13_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 A13 schematic. If you’re using the “big” A13 (not MICRO) notice that some pins are multiplexed with the RTC and the NAND Flash. One workaround is to clear CE and use the rest of the pins.

Thanks also to: bianchina3

Changelog

  • pyA13 0.1.8 (2013-03-05)
    • Added blink.py demo

  • pyA13 0.1.7 (2013-03-05)
    • Missed very tiny bugs

  • pyA13 0.1.6 (2013-03-05)
    • Fixed bugs with functions

    • Updated FIXED.txt

    • Project ready for alpha :)

  • pyA13 0.1.5 (2013-03-01)
    • Fixed bug with initialization

  • pyA13 0.1.4 (2013-03-01)
    • Fixed some setup bugs

    • Removed bugged methods

    • Fixed readme

  • pyA13 0.1.0 (2013-03-01)
    • 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.

Source Distribution

pyA13-0.1.8.tar.gz (5.3 kB view hashes)

Uploaded Source

Supported by

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