pyA10Lime 0.1.0. Python library for GPIO access


Image

We just uploaded pyA10Lime https://pypi.python.org/pypi/pyA10Lime/

>>>import A10Lime as lime

# Initialize module
>>>lime.init()

# Read configuration of GPIO
>>>lime.getcfg(lime.PC3)
# or you can use
>>>lime.getcfg(lime.PIN1_29)

# You can address GPIO either by pin numeration or port name
# For example PG0 pin on GPIO-1 connector can be accessed with lime.PG0 or lime.PIN1_5

# Set configuration
>>>lime.setcfg(lime.PC3, lime.OUTPUT)
>>>lime.setcfg(lime.PC3, lime.INPUT)

# Set output level
>>>lime.output(lime.PC3, lime.HIGH)
>>>lime.output(lime.PC3, lime.LOW)

# Read input state
>>>lime.input(lime.PC3)

# Read detailed info about pin
>>>lime.info(lime.PC3)
>>>lime.info(lime.PIN1_29)

3 Comments (+add yours?)

  1. Philippe Van Hecke
    Jan 24, 2014 @ 00:13:12

    Just for information, Seem that package description is there but not the content

    pip install pyA10Lime
    Downloading/unpacking pyA10Lime
    Could not find any downloads that satisfy the requirement pyA10Lime
    No distributions at all found for pyA10Lime
    Storing complete log in /root/.pip/pip.log

    Reply

  2. Barnabas
    May 27, 2014 @ 17:25:37

    Hi! I had downloaded that, but i got error message when i wanna install. PLease help Thanks

    Reply

  3. geenna
    Sep 01, 2014 @ 19:30:00

    Try to install python-dev.
    apt-get install python-dev. I got error message first to install python-dev

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: