Class GpioOutputPin

java.lang.Object
com.tccc.kos.core.service.gpio.GpioOutputPin

public class GpioOutputPin extends Object
GPIO output pin.
Version:
2025-06-19
  • Constructor Details

    • GpioOutputPin

      public GpioOutputPin()
  • Method Details

    • setListener

      public void setListener(GpioOutputPinListener listener)
      Set the listener to detect when the pin is ready to be updated.
      Parameters:
      listener - the new listener
    • getPin

      public int getPin()
      Return the pin number.
      Returns:
      the GPIO pin number
    • isReady

      public boolean isReady()
      Return true if the pin is ready to be set.
      Returns:
      true if ready to be set
    • setValue

      public void setValue(boolean val) throws IOException
      Set the value of the output pin.
      Parameters:
      val - the value to set to
      Throws:
      IOException