Interface IOPort

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close the port, the port can not be used after this call.
      java.lang.String getName()
      Return the string representing this port
      boolean setPinMode​(int mode)
      Set the port pins up ready for use.
    • Method Detail

      • close

        void close()
        Close the port, the port can not be used after this call.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • getName

        java.lang.String getName()
        Return the string representing this port
        Returns:
        the port name
      • setPinMode

        boolean setPinMode​(int mode)
        Set the port pins up ready for use.
        Parameters:
        mode - The EV3 pin mode
        Returns:
        true if the operation succeeds false if it fails