Python modules for access to GPIO, I2C and SPI to all OLinuXino boards and SOMs on GitHub


We made modules which work same way on all our OLinuXino and SOM boards. The sources are on GitHub.

You can address the GPIOs in two ways – as connector pins and as processor ports.

connector.gpio1p5  means connector GPIO1 pin number 5, same signal can be addressed with port.PG0

9 Comments (+add yours?)

  1. Max
    Sep 08, 2014 @ 12:37:54

    How about LIME models?


  2. kantal
    Sep 08, 2014 @ 14:00:59

    pyA10Lime is missing on GitHub


  3. GeeKen
    Sep 08, 2014 @ 19:20:56

    Now that this GPIO system is working is it easy to expand it, for example, to make PWM signals ??


  4. Peter
    Sep 16, 2014 @ 15:26:21

    Could you please extend the library with interrupt handling and pwm?


  5. Cyril
    Oct 01, 2014 @ 19:35:24

    Yes, interrupts would be fantastic, a bit like GPIO.add_event_detect() in RPi.GPIO on Raspberry Pi


  6. kantal
    Oct 02, 2014 @ 00:57:37

    Maybe interesting for you:
    See the poll example!


  7. Christian
    Dec 14, 2014 @ 00:51:52

    I want to import the pyA20Lime2.gpio into my python script:

    from pyA20Lime2.gpio import gpio
    from pyA20Lime2.gpio import port

    When running the script, I always get:

    ImportError: No module named pyA20Lime2.gpio

    I thought this module is included in the standard debian img file for the OLinuXino A20 Lime 2


  8. ionutcotoi
    Apr 17, 2015 @ 22:19:12

    Hi, Do you also have libraries for the imx233 based boards?



Leave a Reply

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

You are commenting using your 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: