Skip to content

brian.motors.NXTMotor

brian.motors

NXTMotor class objects

class NXTMotor(Motor)

__init__

def __init__(port: MotorPort)

Initialize a new NXTMotor motor object on the given port.

This constructor does not fail if the motor is not connected yet.

Arguments:

  • port: Motor port to use.