Class LinuxFsDigitalOut

java.lang.Object
io.openems.edge.io.gpio.linuxfs.Gpio
io.openems.edge.io.gpio.linuxfs.LinuxFsDigitalOut
All Implemented Interfaces:
DigitalIn, DigitalOut, AutoCloseable

public class LinuxFsDigitalOut extends Gpio implements DigitalOut
  • Constructor Details

    • LinuxFsDigitalOut

      public LinuxFsDigitalOut(int pinNumber, String basePath)
  • Method Details

    • setValue

      public void setValue(boolean value) throws OpenemsException
      Sets the value of the output.
      Specified by:
      setValue in interface DigitalOut
      Parameters:
      value - true if the output should be low, false otherwise.
      Throws:
      OpenemsException - if the value could not be written to the device.
    • toString

      public String toString()
      Overrides:
      toString in class Gpio