Help using this GPIO script meant for RPI

Discussion in 'UDOO 101' started by askywalker, Jul 25, 2015.

  1. askywalker

    askywalker New Member

    Joined:
    Oct 29, 2014
    Messages:
    7
    Likes Received:
    0
  2. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    It is python script so I would say it must be done in a same way ;)
     
  3. askywalker

    askywalker New Member

    Joined:
    Oct 29, 2014
    Messages:
    7
    Likes Received:
    0
    Yes, but the GPIO method looks different. How do I convert these things over?
    import RPi.GPIO as gpio -- This is for raspberry Pi
    gpio.wait_for_edge(7, gpio.FALLING) -- Does UDOO have a falling edge interrupt like this?

    Thanks
     
  4. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    There is one universal GPIO library which supports different systems and not only RPi. I forgot it's name and also Google doesn't find it today.
     
  5. punk45rock

    punk45rock Member

    Joined:
    Dec 21, 2013
    Messages:
    32
    Likes Received:
    2

Share This Page