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


python-logo

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?

    Reply

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

    pyA10Lime is missing on GitHub

    Reply

  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 ??

    Reply

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

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

    Reply

  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

    Reply

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

    Maybe interesting for you: https://github.com/kantal/PythonGPIO
    See the poll example!

    Reply

  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

    Reply

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

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

    Thanks,

    Reply

Leave a comment