Set sensor's type and mode.

Namespace:  AForge.Robotics.Lego
Assembly:  AForge.Robotics.Lego (in AForge.Robotics.Lego.dll) Version: 2.2.3.0 (2.2.3.0)

Syntax

C#
public bool SetSensorMode(
	NXTBrick..::.Sensor sensor,
	NXTBrick..::.SensorType type,
	NXTBrick..::.SensorMode mode
)

Return Value

Returns true if command was executed successfully or false otherwise.

See Also