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