4 Replies Latest reply on Sep 16, 2015 4:28 PM by PabloM_Intel

    Galileo Gen2: Java code to use FastGPIO


      I am looking for java code to use FastGPIO capabilities to read from a digital input ( from an InfraRed receiver)


      I am using the GPIO.java example which is doing where i only found a "slow" way to read digital pin


      Can anyone help in providing code to do a FastGPIO Digital read ?




      public static boolean digitalRead(final int pin) {
      RandomAccessFile file = GPIOHandlers[pin];
      try {
      return file.read() == '1';
      } catch (IOException ex) {
      return false;