Detect GPIO input signal

Discussion in 'Troubleshooting' started by Flavio Pompermaier, May 24, 2016.

Tags:
  1. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
    Hi to all,
    I have a problem detecting inputs with my Udoo quad.
    I have a file listener in Java that detects when there's a change in the files under gpio's directories (e.g. /sys/class/gpio/gpioXX/...). This works perfectly with output pins because the edit date of the file changes as I echo 1 or 0 into value, but this doesn't happen for input pins..the only way to detect a change is to periodically check the content of value file for every input pin...is there any better way to detect an input signal?? couldn't be the edit date of the value file be updated on inputs?

    Best,
    Flavio
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,096
    Likes Received:
    532
  3. Flavio Pompermaier

    Flavio Pompermaier New Member

    Joined:
    Apr 13, 2016
    Messages:
    20
    Likes Received:
    2
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,096
    Likes Received:
    532
    Andrea Rovai likes this.

Share This Page