Class WsI2CInput

    • Field Detail

      • i2c

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

      • WsI2CInput

        public WsI2CInput​(java.lang.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 Detail

      • readRawValue

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