Libraries/NXTLib2/Brick.cs
/// <summary>
/// <para>Attaches a sensor to the NXT brick.</para>
/// </summary>
/// <param name="sensor">The sensor</param>
/// <param name="port">The port to attach the sensor to</param>
Attaches a sensor to the NXT brick.
Attaches a sensor to the NXT brick .
private void AttachSensor(Sensor sensor, Protocol.SensorPort port)
        {
            if (sensor != null)
            {
                sensor.brick = this;
                sensor.Port = port;
                sensorArr[port] = sensor;
            }
        }
private void AttachSensor ( Sensor sensor , Protocol . SensorPort port ) { if ( sensor != null ) { sensor . brick = this ; sensor . Port = port ; sensorArr [ port ] = sensor ; } }
Attaches a sensor to the NXT brick.
Attaches a sensor to the NXT brick .
sensor
Sensor
None
port
Protocol.SensorPort
The port to attach the sensor to
The port to attach the sensor to