Class WsDigitalInput


public class WsDigitalInput extends DigitalInput
Reads a digital input.
  • Constructor Details

    • WsDigitalInput

      public WsDigitalInput(String p_name, int channel, boolean p_pullup)
      Construct the digital input.
      Parameters:
      p_name - Descriptive name for the input.
      channel - Hardware channel used for input.
      p_pullup - Whether pull up more should be used.
  • Method Details

    • readRawValue

      public boolean readRawValue()
      Reads the value from the digital input. Note: if pull up mode is enabled input is reversed.
      Specified by:
      readRawValue in class DigitalInput
      Returns:
      Raw value from input.