Skip to main content

Control GPIOs on Cubieboard A10.

Project description

This package provides class to control the GPIO on Cubieboard A10.
Current release does no support any peripheral functions.
This package is an apapted version of pyA20 for Olimex's OLinuXino-A20.

Example
=======

Typical usage::

#!/usr/bin/env python

import A10_GPIO as GPIO

#init module
GPIO.init()

#configure module
GPIO.setcfg(GPIO.PD2, GPIO.OUTPUT)
GPIO.setcfg(GPIO.PD3, GPIO.INPUT)

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

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

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

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

#cleanup
GPIO.cleanup()


Warning
=======

Before using this tool it is HIGHLY RECOMENDED to check Cubieboard
A10 schematic on http://linux-sunxi.org.

Changelog
===================================
* pyA10_CB 0.1.0 (2014-01-08)
- 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

pyA10_CB-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file pyA10_CB-0.1.0.tar.gz.

File metadata

  • Download URL: pyA10_CB-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyA10_CB-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ffd7a0d5726dd2bbc15cefd31a910c24d52ac7c50ceb093cef434bfaabb09001
MD5 f5027ca5950f5890ce9f08ae75381d2b
BLAKE2b-256 db90a04098447263e9d16ee300bab70e07ed09796abb578cb8722ef0b958b7d7

See more details on using hashes here.

Supported by

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