Class WsI2CInput
- java.lang.Object
-
- org.wildstang.framework.io.inputs.Input
-
- org.wildstang.framework.io.inputs.I2CInput
-
- org.wildstang.hardware.roborio.inputs.WsI2CInput
-
- Direct Known Subclasses:
WsContinuousI2CInput
public class WsI2CInput extends I2CInput
Reads an I2C input.
-
-
Field Summary
Fields Modifier and Type Field Description protected edu.wpi.first.wpilibj.I2C
i2c
-
Constructor Summary
Constructors Constructor Description WsI2CInput(java.lang.String name, edu.wpi.first.wpilibj.I2C.Port port, int p_address)
Construct the I2C input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
readRawValue()
Reads the raw value from the I2C input.-
Methods inherited from class org.wildstang.framework.io.inputs.I2CInput
getValue, readDataFromInput, setValue
-
Methods inherited from class org.wildstang.framework.io.inputs.Input
addInputListener, disable, enable, getInputListeners, getName, hasValueChanged, isEnabled, notifyListeners, removeAllListeners, removeInputListener, setValueChanged, update
-
-
-
-
Method Detail
-
readRawValue
protected byte[] readRawValue()
Reads the raw value from the I2C input.- Specified by:
readRawValue
in classI2CInput
- Returns:
- Raw input value.
-
-