Class WsI2CInput

Direct Known Subclasses:
WsContinuousI2CInput

public class WsI2CInput extends I2CInput
Reads an I2C input.
  • Field Details

    • i2c

      protected edu.wpi.first.wpilibj.I2C i2c
  • Constructor Details

    • WsI2CInput

      public WsI2CInput(String name, edu.wpi.first.wpilibj.I2C.Port port, int p_address)
      Construct the I2C input.
      Parameters:
      name - Descriptive name of the input.
      port - Hardware I2C input used.
      p_address - Device I2C address.
  • Method Details

    • readRawValue

      protected byte[] readRawValue()
      Reads the raw value from the I2C input.
      Specified by:
      readRawValue in class I2CInput
      Returns:
      Raw input value.