Class GpioOutputPin

java.lang.Object
com.kosdev.kos.core.service.gpio.GpioPin
com.kosdev.kos.core.service.gpio.GpioOutputPin

public class GpioOutputPin extends GpioPin
GPIO output pin.
Since:
9
Version:
9
  • Constructor Details

    • GpioOutputPin

      public GpioOutputPin()
  • Method Details

    • setValue

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

      public Boolean getValue()
      Return the most recently set value of the pin. If not set, returns null.
      Since:
      9
    • getHardwareValue

      public Boolean getHardwareValue()
      Return the actual value sent to hardware, factoring in inverted flag.
      Since:
      9