lejos.nxt
Interface BasicMotorPort

All Known Subinterfaces:
TachoMotorPort
All Known Implementing Classes:
MotorPort, PFMotorPort, RCXPlexedMotorPort, RCXRemoteMotorPort, RemoteMotorPort

public interface BasicMotorPort

An abstraction for a motor port that supports RCX type motors, but not NXT motors with tachometers.

Author:
Lawrie Griffiths.

Field Summary
static int PWM_BRAKE
           
static int PWM_FLOAT
           
 
Method Summary
 void controlMotor(int power, int mode)
           
 void setPWMMode(int mode)
           
 

Field Detail

PWM_FLOAT

static final int PWM_FLOAT
See Also:
Constant Field Values

PWM_BRAKE

static final int PWM_BRAKE
See Also:
Constant Field Values
Method Detail

controlMotor

void controlMotor(int power,
                  int mode)

setPWMMode

void setPWMMode(int mode)