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
x - connector name
y - pin number
#init module
GPIO.init()
#configure module
GPIO.setcfg(PINx_y, GPIO.OUTPUT)
GPIO.setcfg(PINx_y, GPIO.INPUT)
#read the current GPIO configuration
config = GPIO.getcfg(PINx_y)
#set GPIO high
GPIO.output(PINx_y, GPIO.HIGH)
#set GPIO low
GPIO.output(PINx_y, GPIO.LOW)
#read input
state = GPIO.input(PINx_y)
#cleanup
GPIO.cleanup()
Warning
=======
Before using this tool it is HIGHLY RECOMENDED to check Olinuxino
A13 schematic.
Changelog
===================================
* pyA13 0.1.13 (2014-04-16)
* Changed PIN names from PINxx to PINx_y,
where x is connector number and y is pin number
on the connector.
* pyA13 0.1.8 (2013-03-05)
* Added bit-bang SPI
* 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
Current release does no support any peripheral functions.
Example
=======
Typical usage::
#!/usr/bin/env python
import A13_GPIO as GPIO
x - connector name
y - pin number
#init module
GPIO.init()
#configure module
GPIO.setcfg(PINx_y, GPIO.OUTPUT)
GPIO.setcfg(PINx_y, GPIO.INPUT)
#read the current GPIO configuration
config = GPIO.getcfg(PINx_y)
#set GPIO high
GPIO.output(PINx_y, GPIO.HIGH)
#set GPIO low
GPIO.output(PINx_y, GPIO.LOW)
#read input
state = GPIO.input(PINx_y)
#cleanup
GPIO.cleanup()
Warning
=======
Before using this tool it is HIGHLY RECOMENDED to check Olinuxino
A13 schematic.
Changelog
===================================
* pyA13 0.1.13 (2014-04-16)
* Changed PIN names from PINxx to PINx_y,
where x is connector number and y is pin number
on the connector.
* pyA13 0.1.8 (2013-03-05)
* Added bit-bang SPI
* 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
Release files for pyA13 0.1.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyA13-0.1.13.tar.gz | 6.0 kB | Details |
Release files / pyA13-0.1.13.tar.gz
| Download URL | pyA13-0.1.13.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8da713c97e7ec21b9c47619d9fe0767d828b792aa4120c96e273a8267b9987c5
|
|
BLAKE2b-256 checksum How to use checksums |
ca9b7cfb2e6c8acf20ddca040ce9f5faf182256af15c268349dfc03c35fc53b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |