Control GPIOs on OLinuXino-Maxi.
Project description
This package provides class to control the GPIO on Olinuxino Maxi.
Current release does no support any peripheral functions.
Example
=======
Typical usage::
#!/usr/bin/env python
import IMX233_GPIO as GPIO
#init module
GPIO.init()
#configure module
GPIO.setcfg(GPIO.PIN#, GPIO.OUT)
GPIO.setcfg(GPIO.PIN#, GPIO.IN)
#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
=======
Current release does no support any peripheral functions.
Example
=======
Typical usage::
#!/usr/bin/env python
import IMX233_GPIO as GPIO
#init module
GPIO.init()
#configure module
GPIO.setcfg(GPIO.PIN#, GPIO.OUT)
GPIO.setcfg(GPIO.PIN#, GPIO.IN)
#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
=======
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pyIMX233-0.0.1.tar.gz
(5.9 kB
view hashes)