Class WsI2CInputConfig
java.lang.Object
org.wildstang.hardware.roborio.inputs.config.WsI2CInputConfig
- All Implemented Interfaces:
InputConfig
- Direct Known Subclasses:
WsContinuousI2CInputConfig
Contains configurations for I2C Outputs.
-
Constructor Summary
ConstructorsConstructorDescriptionWsI2CInputConfig(edu.wpi.first.wpilibj.I2C.Port p_port, int p_address) Construct the I2C config. -
Method Summary
-
Constructor Details
-
WsI2CInputConfig
public WsI2CInputConfig(edu.wpi.first.wpilibj.I2C.Port p_port, int p_address) Construct the I2C config.- Parameters:
p_port- I2C hardware port number.p_address- I2C address, normally static by device.
-
-
Method Details
-
getPort
public edu.wpi.first.wpilibj.I2C.Port getPort()Return the I2C hardware port number, kOnboard or kMXP.- Returns:
- The I2C port number.
-
getAddress
public int getAddress()Return the I2C address.- Returns:
- The I2C address.
-
toString
Builds a JSON String describing the I2C input config.
-