Control GPIOs on OLinuXino-A13.
Project description
=====
pyA13
=====
This package provides class to control the GPIO on Olinuxino A13.
Current release does no support any peripheral functions.
Typical usage:
#!/usr/bin/env python
import A13_GPIO as GPIO
#init module
GPIO.init()
#configure module
GPIO.setcfg(NUMBER, VALUE)
Where:
* NUMBER - is the GPIO number (0, 1, 2, 3 ...)
* VALUE - can be:
* INPUT
* OUTPUT
* PER (Not fully working)
#read the current GPIO configuration
config = GPIO.getcfg(NUMBER)
#set GPIO high
GPIO.output(NUMBER, HIGH)
#set GPIO low
GPIO.output(NUMBER, LOW)
#cleanup
GPIO.cleanup()
Thanks also to: bianchina3
2013-03-04 Stefan Mavrodiev <support@olimex.com>
* 0.1.2 - Initalization and cleanup working
========================================================================
2013-03-04 Stefan Mavrodiev <support@olimex.com>
* 0.1.1 - As expected nothing work
========================================================================
2013-03-01 Stefan Mavrodiev <support@olimex.com>
* 0.1.0 - Initial release
========================================================================
pyA13
=====
This package provides class to control the GPIO on Olinuxino A13.
Current release does no support any peripheral functions.
Typical usage:
#!/usr/bin/env python
import A13_GPIO as GPIO
#init module
GPIO.init()
#configure module
GPIO.setcfg(NUMBER, VALUE)
Where:
* NUMBER - is the GPIO number (0, 1, 2, 3 ...)
* VALUE - can be:
* INPUT
* OUTPUT
* PER (Not fully working)
#read the current GPIO configuration
config = GPIO.getcfg(NUMBER)
#set GPIO high
GPIO.output(NUMBER, HIGH)
#set GPIO low
GPIO.output(NUMBER, LOW)
#cleanup
GPIO.cleanup()
Thanks also to: bianchina3
2013-03-04 Stefan Mavrodiev <support@olimex.com>
* 0.1.2 - Initalization and cleanup working
========================================================================
2013-03-04 Stefan Mavrodiev <support@olimex.com>
* 0.1.1 - As expected nothing work
========================================================================
2013-03-01 Stefan Mavrodiev <support@olimex.com>
* 0.1.0 - Initial release
========================================================================
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(4.0 kB
view hashes)