ColourSensorEnable(Int32, Int32) Method

Enables the colour sensor to report colour values using specified integration time and gain.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void Enable(
	int integrationTime,
	int gain
)

Parameters

integrationTime  Int32
Integration time expressed as a value between 0 and 5 inclusive. Use static class TCS34725 that has symbolic labels for integration time values.
gain  Int32
Gain represebted as a value between 0 and 3 inclusive. Use static class TCS34725 that has symbolic labels for gain values.

Exceptions

IOExceptionSerial port is in error state or not open.

See Also