AForge.Robotics.Lego.RCXBrick.ClearSensor C# (CSharp) Method

ClearSensor() public method

Clear the counter associated with the specified sensor by setting it to a value of zero.
public ClearSensor ( Sensor sensor ) : bool
sensor Sensor Sensor to clear value of.
return bool
        public bool ClearSensor( Sensor sensor )
        {
            return SendCommand( new byte[] { (byte) RCXCommand.ClearSensorValue,
                (byte) sensor }, new byte[1], 1 );
        }